mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 08:09:41 +02:00
Bug2681 -- crash when generating into silence
This commit is contained in:
parent
eaaaf67fe4
commit
8f0cec114c
@ -916,8 +916,8 @@ void WaveTrack::ClearAndPaste(double t0, // Start of time to clear
|
||||
// Restore the envelope points
|
||||
for (auto point : envPoints) {
|
||||
auto t = warper->Warp(point.GetT());
|
||||
WaveClip *clip = GetClipAtTime(t);
|
||||
clip->GetEnvelope()->Insert(t, point.GetVal());
|
||||
if (auto clip = GetClipAtTime(t))
|
||||
clip->GetEnvelope()->Insert(t, point.GetVal());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user