Tempo ramps - ensure displayed grid extends beyond the leftmost frame.
authornick_m <mainsbridge@gmail.com>
Wed, 18 May 2016 15:26:02 +0000 (01:26 +1000)
committernick_m <mainsbridge@gmail.com>
Fri, 27 May 2016 13:38:16 +0000 (23:38 +1000)
gtk2_ardour/editor_tempodisplay.cc

index 3ccaf7841599d825ffc5ddb6b8ae86f9448b841e..3058323c5acdf19d801a217d92c6f0ea473a7b1a 100644 (file)
@@ -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);
 }