Compare commits

...

3 Commits

Author SHA1 Message Date
6379c28b76 remove debug output 2022-08-25 15:15:52 -06:00
13d10582f0 fix behavior of Region::mid_thaw() to match pre-nutempo behavior
We no longer have a distinct "position" property, because the "length" property
defines both extent and position. But we must not call ::recompute_at_start()
when the position has not changed, so here we use Region::last_length() to
simulate the position property.
2022-08-25 15:15:52 -06:00
00a1b7cb24 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)
2022-08-25 15:15:52 -06:00

View File

@ -495,7 +495,7 @@ Region::set_length_internal (timecnt_t const & len)
l.set_position (position());
_last_length = l;
_last_length = _length;
_length = l;
}
@ -1402,7 +1402,9 @@ void
Region::mid_thaw (const PropertyChange& what_changed)
{
if (what_changed.contains (Properties::length)) {
recompute_at_start ();
if (length().position() != last_position()) {
recompute_at_start ();
}
recompute_at_end ();
}
}