Another engine dialog edge-case fix to set the samplerate
[ardour.git] / gtk2_ardour / editor_tempodisplay.cc
index 0cb646be503630cb4b1ccea9ef7bd2a6c657d768..4630f1fe43829b48447b106499baab2b5d7d7571 100644 (file)
@@ -326,10 +326,10 @@ Editor::compute_current_bbt_points (std::vector<TempoMap::BBTPoint>& grid, sampl
        const double lower_beat = floor (max (0.0, _session->tempo_map().beat_at_sample (leftmost))) - 1.0;
        switch (bbt_ruler_scale) {
 
-       case bbt_show_beats:
-       case bbt_show_ticks:
-       case bbt_show_ticks_detail:
-       case bbt_show_ticks_super_detail:
+       case bbt_show_quarters:
+       case bbt_show_eighths:
+       case bbt_show_sixteenths:
+       case bbt_show_thirtyseconds:
                _session->tempo_map().get_grid (grid, max (_session->tempo_map().sample_at_beat (lower_beat), (samplepos_t) 0), rightmost);
                break;
 
@@ -383,7 +383,7 @@ Editor::maybe_draw_grid_lines ()
        } else if (_grid_type== GridTypeTimecode) {
                 metric_get_timecode (grid_marks, _leftmost_sample, rightmost_sample, 12);
        } else if (_grid_type == GridTypeCDFrame) {
-               metric_get_samples (grid_marks, _leftmost_sample, rightmost_sample, 12);
+               metric_get_minsec (grid_marks, _leftmost_sample, rightmost_sample, 12);
        } else if (_grid_type == GridTypeMinSec) {
                metric_get_minsec (grid_marks, _leftmost_sample, rightmost_sample, 12);
        }