1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-24 08:28:04 +02:00

Rearrange a few things in time shift button up...

... to reclaim some memory earlier, before possible throws
This commit is contained in:
Paul Licameli 2016-12-18 16:37:56 -05:00
parent 68c726918b
commit 63e44e2b6b

View File

@ -3329,6 +3329,20 @@ void TrackPanel::HandleSlide(wxMouseEvent & event)
DoSlide(event);
if (event.LeftUp()) {
SetCapturedTrack( NULL );
mSnapManager.reset();
// Do not draw yellow lines
if (mSnapLeft != -1 || mSnapRight != -1) {
mSnapLeft = mSnapRight = -1;
Refresh(false);
}
if (!mDidSlideVertically && mHSlideAmount==0)
return;
for (size_t i = 0; i < mCapturedClipArray.size(); i++)
{
TrackClip &trackClip = mCapturedClipArray[i];
@ -3349,19 +3363,6 @@ void TrackPanel::HandleSlide(wxMouseEvent & event)
}
}
SetCapturedTrack( NULL );
mSnapManager.reset();
// Do not draw yellow lines
if (mSnapLeft != -1 || mSnapRight != -1) {
mSnapLeft = mSnapRight = -1;
Refresh(false);
}
if (!mDidSlideVertically && mHSlideAmount==0)
return;
MakeParentRedrawScrollbars();
wxString msg;