1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Bug1614: fix crash duplicating a clip

This commit is contained in:
Paul Licameli
2017-03-30 16:48:52 -04:00
parent 7bda40f656
commit 23dc35a18c
2 changed files with 5 additions and 4 deletions

View File

@@ -198,7 +198,7 @@ EnvPoint *Envelope::AddPointAtEnd( double t, double val )
void Envelope::CopyFrom(const Envelope *e, double t0, double t1)
{
wxASSERT( t0 < t1 );
wxASSERT( t0 <= t1 );
mOffset = wxMax(t0, e->mOffset);
mTrackLen = wxMin(t1, e->mOffset + e->mTrackLen) - mOffset;