From 00a1b7cb240556c510db0529473793b1541464a1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 25 Aug 2022 15:12:19 -0600 Subject: [PATCH] fix assignment of Region::_last_length in Region::set_length_internal() this member is always supposed to give the previous length (before the most recent change to either extent or position) --- libs/ardour/region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 41d160ddd7..78d805815b 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -495,7 +495,7 @@ Region::set_length_internal (timecnt_t const & len) l.set_position (position()); - _last_length = l; + _last_length = _length; _length = l; }