summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-05-18 00:12:28 +1000
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:16 +1000
commit5ccfeea5bcf17ae35f932972dfc802f7fd7ecfe5 (patch)
treeb7eacb1b0f1ad7fe92caa92be1f956e74d8a83be /gtk2_ardour/editor_tempodisplay.cc
parentabac4ce854982c48b1cc825e573bdea5b13e8eb7 (diff)
Tempo ramps - more bbt dragging work.
- display prev tempo and tempo at mouse while dragging - simplify ramp dilation somewhat.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 0b133e3051..435ee90a21 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -244,7 +244,8 @@ Editor::compute_current_bbt_points (std::vector<TempoMap::BBTPoint>& grid, frame
/* prevent negative values of leftmost from creeping into tempomap
*/
- _session->tempo_map().get_grid (grid, max (leftmost, (framepos_t) 0), rightmost);
+ const double lower_beat = floor (_session->tempo_map().beat_at_frame (leftmost));
+ _session->tempo_map().get_grid (grid, max (_session->tempo_map().frame_at_beat (lower_beat), (framepos_t) 0), rightmost);
}
void