mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-24 16:01:16 +02:00
Bug 641 - ASSERT when adding recording not at start of track.
Cause by testing the track length before setting the track length.
This commit is contained in:
parent
2f10c1ce25
commit
c8b2cc9d31
@ -933,14 +933,15 @@ void Envelope::InsertSpace( double t0, double tlen )
|
|||||||
point.SetT( point.GetT() + tlen );
|
point.SetT( point.GetT() + tlen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// increase track len, before insert or replace,
|
||||||
|
// since it range chacks the values.
|
||||||
|
mTrackLen += tlen;
|
||||||
// Preserve the right-side limit.
|
// Preserve the right-side limit.
|
||||||
if ( 1 + range.first < range.second )
|
if ( 1 + range.first < range.second )
|
||||||
// There was a control point already.
|
// There was a control point already.
|
||||||
;
|
;
|
||||||
else
|
else
|
||||||
InsertOrReplaceRelative( t0 + tlen, val );
|
InsertOrReplaceRelative( t0 + tlen, val );
|
||||||
|
|
||||||
mTrackLen += tlen;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int Envelope::Reassign(double when, double value)
|
int Envelope::Reassign(double when, double value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user