fix crash during tempo mapping

Region _length values are not stashed during tempo mapping
if the region is already in the intermediate time domain, so do
not assert when they cannot be found at the end of the operation
This commit is contained in:
Paul Davis 2023-08-27 09:41:18 -06:00
parent 40719ec67d
commit 8c9b6812d7
1 changed files with 4 additions and 1 deletions

View File

@ -2298,7 +2298,10 @@ Region::finish_domain_bounce (Temporal::DomainBounceInfo& cmd)
clear_changes ();
Temporal::TimeDomainCntChanges::iterator tc = cmd.counts.find (&_length.non_const_val());
assert (tc != cmd.counts.end());
if (tc == cmd.counts.end()) {
/* must have already been in the correct time domain */
return;
}
/* switch domains back (but with modified TempoMap, presumably */
tc->second.set_time_domain (cmd.from);