diff options
author | nick_m <mainsbridge@gmail.com> | 2016-10-21 02:49:04 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-10-21 02:49:04 +1100 |
commit | 99fbdee0d834471c6440de381cdec9b8d31ff211 (patch) | |
tree | 37b19b550b0536f0473c59251a77e67f517b96db /gtk2_ardour/audio_clock.cc | |
parent | 146072ec6173273f56f7f6b698c338c81a1505d2 (diff) |
bbt duration clock tweak.
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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; |