From 55f7c0f6af48ffe7c40919d292eb905c1c9ddf97 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 20 Apr 2019 12:26:15 -0400 Subject: [PATCH] Fix bug 2096 differently... ... without reverting commit 0aad028 (which was done at commit fe22b2a, but I reverted that reversion at the previous commit) --- src/effects/Effect.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/effects/Effect.cpp b/src/effects/Effect.cpp index fb9820502..5b37693b7 100644 --- a/src/effects/Effect.cpp +++ b/src/effects/Effect.cpp @@ -1291,6 +1291,8 @@ bool Effect::DoEffect(wxWindow *parent, bool Effect::Delegate( Effect &delegate, wxWindow *parent, bool shouldPrompt) { + // Ensure no net effect on the selected region + ValueRestorer< SelectedRegion > cleanup{ *mpSelectedRegion }; return delegate.DoEffect( parent, mProjectRate, mTracks, mFactory, mpSelectedRegion, shouldPrompt ); }