From ad9757e73c437eb1876ea8823c50e1debaca88ed Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 7 Dec 2022 11:13:19 -0700 Subject: [PATCH] fix nudge/duration clocks when scrolling in BBT mode --- gtk2_ardour/audio_clock.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 6cdb8bf661..93f5d09be4 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -1823,7 +1823,7 @@ AudioClock::on_scroll_event (GdkEventScroll *ev) step *= 10; } if (is_duration) { - if (current_duration () >= timecnt_t (step)) { // XXX this is not right, also step for BBT is too small + if (!(current_duration () - step).is_negative()) { AudioClock::set_duration (current_duration () - step, true); } } else if (!_negative_allowed && last_when() < step) {