added safety check to wxWindow::ReleaseMouse
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
844a4451f6
commit
a7b09001af
@ -1646,6 +1646,8 @@ void wxWindowBase::ReleaseMouse()
|
||||
{
|
||||
wxLogTrace(_T("mousecapture"), _T("ReleaseMouse(0x%08x)"), this);
|
||||
|
||||
wxASSERT_MSG( GetCapture() == this, wxT("attempt to release mouse, but this window hasn't captured it") )
|
||||
|
||||
DoReleaseMouse();
|
||||
|
||||
if ( ms_winCaptureNext )
|
||||
|
Loading…
Reference in New Issue
Block a user