fixed crasher
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3534,9 +3534,11 @@ void wxAuiManager::OnSetCursor(wxSetCursorEvent& event)
|
|||||||
|
|
||||||
|
|
||||||
void wxAuiManager::UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part,
|
void wxAuiManager::UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part,
|
||||||
const wxMouseEvent& event)
|
const wxMouseEvent& event)
|
||||||
{
|
{
|
||||||
wxAuiDockUIPart* hit_test = HitTest(event.GetX(), event.GetY());
|
wxAuiDockUIPart* hit_test = HitTest(event.GetX(), event.GetY());
|
||||||
|
if (!hit_test)
|
||||||
|
return;
|
||||||
|
|
||||||
int state = wxAUI_BUTTON_STATE_NORMAL;
|
int state = wxAUI_BUTTON_STATE_NORMAL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user