indicate negative TC when edit is positive.

git-svn-id: svn://localhost/ardour2/branches/3.0@13491 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus 2012-11-14 03:35:23 +00:00
parent 6a24f75a6f
commit 4322fcec23
1 changed files with 5 additions and 4 deletions

View File

@ -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);