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