1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Bug2681 -- crash when generating into silence

This commit is contained in:
Paul Licameli 2021-02-26 08:04:27 -05:00
parent eaaaf67fe4
commit 8f0cec114c

View File

@ -916,7 +916,7 @@ 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);
if (auto clip = GetClipAtTime(t))
clip->GetEnvelope()->Insert(t, point.GetVal());
}
}