1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Review and fix CaptureMouse (per Bug 1204 commit comment)

This is using the same idiom of only capturing if not capturing already.  These cases in AutoDuck, Resizing, Grabber and TQP might have been latent ASSERTs.  This based on precedent rather than actual elicited buggy behaviour.
This commit is contained in:
James Crook
2016-07-17 09:38:23 +01:00
parent e24673fb89
commit d092fe0e4b
4 changed files with 8 additions and 4 deletions

View File

@@ -168,7 +168,8 @@ void ToolBarResizer::OnLeftDown( wxMouseEvent & event )
mOrigSize = mBar->GetSize();
// We want all of the mouse events
CaptureMouse();
if( !HasCapture() )
CaptureMouse();
}
void ToolBarResizer::OnLeftUp( wxMouseEvent & event )