From: Benjamin Williams Date: Wed, 8 Nov 2006 05:38:36 +0000 (+0000) Subject: fixed crasher X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/28169517b83648ffe43bccf9ac8e40f11d39c8c4 fixed crasher git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index bf0138345d..0ebfccaf03 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3534,10 +3534,12 @@ void wxAuiManager::OnSetCursor(wxSetCursorEvent& event) void wxAuiManager::UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part, - const wxMouseEvent& event) + const wxMouseEvent& event) { wxAuiDockUIPart* hit_test = HitTest(event.GetX(), event.GetY()); - + if (!hit_test) + return; + int state = wxAUI_BUTTON_STATE_NORMAL; if (hit_test == button_ui_part)