mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Copy the correct amount of 'envelope' to match up with the samples - the lengths should correspond.
This commit is contained in:
@@ -1213,7 +1213,7 @@ bool WaveClip::CreateFromCopy(double t0, double t1, WaveClip* other)
|
||||
delete oldSequence;
|
||||
delete mEnvelope;
|
||||
mEnvelope = new Envelope();
|
||||
mEnvelope->CopyFrom(other->mEnvelope, t0, t1);
|
||||
mEnvelope->CopyFrom(other->mEnvelope, (double)s0/mRate, (double)s1/mRate);
|
||||
|
||||
MarkChanged();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user