From 7773fc5b64e5414e3253fd772f786aea221185c4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 26 Feb 2021 12:44:18 -0700 Subject: [PATCH] libtemporal: TempoMap::full_duration_at() returns correct value for unchanged time domain call --- libs/temporal/tempo.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 5415f57f11..9846aee288 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -2392,7 +2392,8 @@ TempoMap::full_duration_at (timepos_t const & pos, timecnt_t const & duration, T superclock_t s; if (return_domain == duration.time_domain()) { - return duration; + /* new timecnt_t: same distance, but new position */ + return timecnt_t (duration.distance(), pos); } switch (return_domain) {