From fcdf7018c5a3b84200bfdf2d0d4d53b6b6cd6bb6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 1 Dec 2020 22:33:54 -0700 Subject: [PATCH] fix incorrect logic check for null session --- gtk2_ardour/audio_clock.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 0846bc5d7e..34c50e0a4d 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -845,13 +845,13 @@ AudioClock::set (timepos_t const & w, bool force, timecnt_t const & offset) { timepos_t when (w); - if ((!force && !is_visible()) || _session) { + if ((!force && !is_visible()) || !_session) { return; } _offset = offset; if (is_duration) { - when = timepos_t (offset - when); + when = when.earlier (offset); } if (when > _limit_pos) {