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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user