From 4322fcec23230fa0e91da32b55a46bf8a9e4aefb Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 14 Nov 2012 03:35:23 +0000 Subject: indicate negative TC when edit is positive. git-svn-id: svn://localhost/ardour2/branches/3.0@13491 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/audio_clock.cc | 9 +++++---- 1 file 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); -- cgit v1.2.3