1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-12 14:47:43 +02:00

Reset the selection time after a preview.

Steve found that if you preview an effect and, say, cancel it
before it finishes preparing, an apply will not modify all of
the originally selected audio...just up to the preview length.

This is very easy to reproduce using the Paulstretch on a 30
second clip...just click stop on the "Preparing preview"
dialog and the click apply.
This commit is contained in:
lllucius 2014-10-06 21:53:58 +00:00
parent 0cfabcf345
commit 80c216cccf

View File

@ -487,11 +487,13 @@ void Effect::Preview(bool dryOnly)
End(); End();
Init(); Init();
} }
// Restore original selection
mT0 = t0save;
mT1 = t1save;
if (bSuccess) if (bSuccess)
{ {
mT0 = t0save;
mT1 = t1save;
WaveTrackArray playbackTracks; WaveTrackArray playbackTracks;
WaveTrackArray recordingTracks; WaveTrackArray recordingTracks;
// Probably not the same tracks post-processing, so can't rely on previous values of mixLeft & mixRight. // Probably not the same tracks post-processing, so can't rely on previous values of mixLeft & mixRight.