diff options
Diffstat (limited to 'gtk2_ardour/editor_rulers.cc')
-rw-r--r-- | gtk2_ardour/editor_rulers.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_rulers.cc b/gtk2_ardour/editor_rulers.cc index 067c05f593..57ee38069b 100644 --- a/gtk2_ardour/editor_rulers.cc +++ b/gtk2_ardour/editor_rulers.cc @@ -1109,15 +1109,11 @@ Editor::compute_bbt_ruler_scale (std::vector<ARDOUR::TempoMap::BBTPoint>& grid, i--; /* XX ?? */ - /* if ((*i).beat >= (*grid.begin()).beat) { bbt_bars = (*i).bar - (*grid.begin()).bar; } else { bbt_bars = (*i).bar - (*grid.begin()).bar; } - */ - /*XXX totally wrong */ - bbt_bars = (floor (_session->tempo_map().beat_at_frame (upper)) - floor (_session->tempo_map().beat_at_frame (lower))) / 4; beats = distance (grid.begin(), grid.end()) - bbt_bars; |