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:
parent
40719ec67d
commit
8c9b6812d7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue