mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-26 09:28:07 +02:00
Rearrange a few things in time shift button up...
... to reclaim some memory earlier, before possible throws
This commit is contained in:
parent
68c726918b
commit
63e44e2b6b
@ -3329,6 +3329,20 @@ void TrackPanel::HandleSlide(wxMouseEvent & event)
|
|||||||
DoSlide(event);
|
DoSlide(event);
|
||||||
|
|
||||||
if (event.LeftUp()) {
|
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++)
|
for (size_t i = 0; i < mCapturedClipArray.size(); i++)
|
||||||
{
|
{
|
||||||
TrackClip &trackClip = mCapturedClipArray[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();
|
MakeParentRedrawScrollbars();
|
||||||
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user