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:
Václav Slavík
2002-01-22 18:53:16 +00:00
parent 844a4451f6
commit a7b09001af

View File

@@ -1646,6 +1646,8 @@ void wxWindowBase::ReleaseMouse()
{ {
wxLogTrace(_T("mousecapture"), _T("ReleaseMouse(0x%08x)"), this); 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(); DoReleaseMouse();
if ( ms_winCaptureNext ) if ( ms_winCaptureNext )