diff options
author | Robin Gareus <robin@gareus.org> | 2012-11-14 03:35:23 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2012-11-14 03:35:23 +0000 |
commit | 4322fcec23230fa0e91da32b55a46bf8a9e4aefb (patch) | |
tree | c0cfedb09ddebd62202a07b295f0a525cdf0dc8c /gtk2_ardour/audio_clock.cc | |
parent | 6a24f75a6f9cfede66441a8e3c036d116ee5c8ed (diff) |
indicate negative TC when edit is positive.
git-svn-id: svn://localhost/ardour2/branches/3.0@13491 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 4d75584f98..2dfdf77272 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -1446,10 +1446,11 @@ AudioClock::on_key_press_event (GdkEventKey* ev) if (edit_is_negative) { edit_string.replace(0,1,"-"); } else { - /* TODO think about this case. - * The TC will be positive unless the edit is relative. - */ - edit_string.replace(0,1," "); + if (pre_edit_string.at(0) == '-') { + edit_string.replace(0,1,"_"); + } else { + edit_string.replace(0,1," "); + } } show_edit_status (highlight_length); |