mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-20 14:20:06 +02:00
Don't capture the mouse if it's already captured.
Otherwise the following assertion gets triggered: ../src/common/wincmn.cpp(3271): assert "!wxMouseCapture::IsInCaptureStack(this)" failed in CaptureMouse(): Recapturing the mouse in the same window? Based on the fix provided for an identical assertion triggered elsewhere, described here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765779
This commit is contained in:
parent
44fc5b9f4d
commit
01c346fe91
@ -6126,6 +6126,7 @@ void TrackPanel::OnMouseEvent(wxMouseEvent & event)
|
||||
|
||||
if (event.ButtonDown()) {
|
||||
SetFocus();
|
||||
if (!HasCapture())
|
||||
CaptureMouse();
|
||||
}
|
||||
else if (event.ButtonUp()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user