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:
@@ -726,6 +726,10 @@ void wxFrameLayout::SetBarState( cbBarInfo* pBar, int newState, bool updateNow )
|
|||||||
mFloatedFrames.Erase( pNode );
|
mFloatedFrames.Erase( pNode );
|
||||||
|
|
||||||
pFFrm->Show( false );
|
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;
|
pFFrm->Destroy(); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user