1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 00:30:07 +02:00

Paste envelope in at the correct place

This commit is contained in:
martynshaw99 2010-09-12 20:43:14 +00:00
parent eb145b241c
commit 5c48047d0e

View File

@ -1249,7 +1249,7 @@ bool WaveClip::Paste(double t0, WaveClip* other)
if (mSequence->Paste(s0, other->mSequence))
{
MarkChanged();
mEnvelope->Paste(t0, other->mEnvelope);
mEnvelope->Paste((double)s0/mRate, other->mEnvelope);
mEnvelope->RemoveUnneededPoints();
OffsetCutLines(t0, other->GetEndTime()-other->GetStartTime());