1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Bug2096: complete the fix started at 55f7c0f

This commit is contained in:
Paul Licameli 2019-04-22 00:06:29 -04:00
parent 027c5b4533
commit b83781ccde

View File

@ -1292,7 +1292,8 @@ bool Effect::DoEffect(wxWindow *parent,
bool Effect::Delegate( Effect &delegate, wxWindow *parent, bool shouldPrompt) bool Effect::Delegate( Effect &delegate, wxWindow *parent, bool shouldPrompt)
{ {
// Ensure no net effect on the selected region // Ensure no net effect on the selected region
ValueRestorer< SelectedRegion > cleanup{ *mpSelectedRegion }; ValueRestorer< SelectedRegion > cleanup{
*mpSelectedRegion, SelectedRegion{ mT0, mT1 } };
return delegate.DoEffect( parent, mProjectRate, mTracks, mFactory, return delegate.DoEffect( parent, mProjectRate, mTracks, mFactory,
mpSelectedRegion, shouldPrompt ); mpSelectedRegion, shouldPrompt );
} }