From 808dc8ad64fd02fc9f66326916dc930fcaf6651c Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 26 Jul 2018 14:07:45 -0500 Subject: new_grid: fix some thinkos in ruler math, to better match sensible grid lines. Tweak enums to better match the Grid values they represent. --- gtk2_ardour/editor_tempodisplay.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/editor_tempodisplay.cc') diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index fa2b821c24..4630f1fe43 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -326,10 +326,10 @@ Editor::compute_current_bbt_points (std::vector& 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; -- cgit v1.2.3