From 6e9730ad6e68f1547e08a69ca0325a7c7e9ae432 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Wed, 2 Nov 2022 16:57:49 +0100 Subject: [PATCH] Fix negated origin time in main clock When selecting "Origin" for the clock, it is expected that it should work like "Absolute", except measuring from the selected Origin. Positions to the right of origin should be positive. However, recently, it got negated. As playback progressed, time got more and more negative. Fix that by negating again. --- gtk2_ardour/main_clock.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/main_clock.cc b/gtk2_ardour/main_clock.cc index d098240bdb..549bbda759 100644 --- a/gtk2_ardour/main_clock.cc +++ b/gtk2_ardour/main_clock.cc @@ -131,7 +131,7 @@ MainClock::set (timepos_t const & when, bool force) case DeltaOriginMarker: { Location* loc = AudioEngine::instance()->session()->locations()->clock_origin_location (); - AudioClock::set_duration (when.distance (loc ? loc->start() : timepos_t (when.time_domain())), force); + AudioClock::set_duration (-when.distance (loc ? loc->start() : timepos_t (when.time_domain())), force); } break; }