add assert checking that GetCapture() and ms_winCaptureCurrentare in sync
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
26fba7b2a3
commit
31b9d29fd7
@ -2641,7 +2641,10 @@ void wxWindowBase::ReleaseMouse()
|
||||
|
||||
wxASSERT_MSG( !ms_winCaptureChanging, _T("recursive ReleaseMouse call?") );
|
||||
|
||||
wxASSERT_MSG( GetCapture() == this, wxT("attempt to release mouse, but this window hasn't captured it") );
|
||||
wxASSERT_MSG( GetCapture() == this,
|
||||
"attempt to release mouse, but this window hasn't captured it" );
|
||||
wxASSERT_MSG( ms_winCaptureCurrent == this,
|
||||
"attempt to release mouse, but this window hasn't captured it" );
|
||||
|
||||
ms_winCaptureChanging = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user