summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-06-17 04:09:48 +1000
committernick_m <mainsbridge@gmail.com>2017-07-22 02:15:20 +1000
commit29e580a2493467efb864d0e9a0d0a0a3b5f2ec4e (patch)
tree77d0fb1e5a64e2e205545a8707c25d8498f2fb71 /gtk2_ardour
parentfb761a6fa7719fbd532dec08564142336316d92c (diff)
Time info box updates its length display correctly over a tempo change
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/time_info_box.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/time_info_box.cc b/gtk2_ardour/time_info_box.cc
index 2c316c05a9..53425f9cd9 100644
--- a/gtk2_ardour/time_info_box.cc
+++ b/gtk2_ardour/time_info_box.cc
@@ -275,7 +275,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (selection.time.start());
selection_end->set (selection.time.end_frame());
- selection_length->set (selection.time.length());
+ selection_length->set (selection.time.end_frame(), false, selection.time.start());
} else {
selection_start->set_off (true);
selection_end->set_off (true);
@@ -294,7 +294,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (s);
selection_end->set (e);
- selection_length->set (e - s + 1);
+ selection_length->set (e, false, s);
}
} else {
/* this is more efficient than tracking changes per region in large selections */
@@ -327,7 +327,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (s);
selection_end->set (e);
- selection_length->set (e - s + 1);
+ selection_length->set (e, false, s);
} else {
selection_start->set_off (true);
selection_end->set_off (true);
@@ -339,7 +339,7 @@ TimeInfoBox::selection_changed ()
selection_length->set_off (false);
selection_start->set (selection.time.start());
selection_end->set (selection.time.end_frame());
- selection_length->set (selection.time.length());
+ selection_length->set (selection.time.end_frame(), false, selection.time.start());
}
break;