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:
Václav Slavík 2008-08-13 09:00:36 +00:00
parent 26fba7b2a3
commit 31b9d29fd7

View File

@ -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;