Workaround an assert that leads up to causing a crash on the next time anything tries to CaptureMouse

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2007-12-28 07:16:38 +00:00
parent f95d54fe64
commit fb8c131d10

View File

@@ -726,6 +726,10 @@ void wxFrameLayout::SetBarState( cbBarInfo* pBar, int newState, bool updateNow )
mFloatedFrames.Erase( pNode );
pFFrm->Show( false );
// Workaround assert that causes a crash on the next time something tries to CaptureMouse
if (pFFrm->HasCapture()) pFFrm->ReleaseMouse();
pFFrm->Destroy(); break;
}