summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-05-19 01:26:02 +1000
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:16 +1000
commitcfbc42cd3afe32ba189e3760ffeb33cabcd0e5ae (patch)
treec86695e1f7ae59651dbb649cb7a711cd10c24d50 /gtk2_ardour/editor_tempodisplay.cc
parent2d3d7a53556a0b724c91db0dbf991e3d7a78b4fe (diff)
Tempo ramps - ensure displayed grid extends beyond the leftmost frame.
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 3ccaf78415..3058323c5a 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -258,7 +258,7 @@ Editor::compute_current_bbt_points (std::vector<TempoMap::BBTPoint>& grid, frame
/* prevent negative values of leftmost from creeping into tempomap
*/
- const double lower_beat = floor (_session->tempo_map().beat_at_frame (leftmost));
+ const double lower_beat = floor (_session->tempo_map().beat_at_frame (leftmost)) - 1.0;
_session->tempo_map().get_grid (grid, max (_session->tempo_map().frame_at_beat (lower_beat), (framepos_t) 0), rightmost);
}