From 99fbdee0d834471c6440de381cdec9b8d31ff211 Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 21 Oct 2016 02:49:04 +1100 Subject: bbt duration clock tweak. --- gtk2_ardour/audio_clock.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/audio_clock.cc') diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 9870aec04f..0c05cfd7f9 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -1246,10 +1246,6 @@ AudioClock::set_bbt (framepos_t when, framecnt_t offset, bool /*force*/) negative = true; } - if (offset == 0) { - offset = bbt_reference_time; - } - /* handle a common case */ if (is_duration) { if (when == 0) { @@ -1259,6 +1255,10 @@ AudioClock::set_bbt (framepos_t when, framecnt_t offset, bool /*force*/) } else { TempoMap& tmap (_session->tempo_map()); + if (offset == 0) { + offset = bbt_reference_time; + } + const double divisions = tmap.meter_section_at_frame (offset).divisions_per_bar(); Timecode::BBT_Time sub_bbt; -- cgit v1.2.3