fixed crasher (part 2)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2006-11-08 05:39:59 +00:00
parent 28169517b8
commit a93d5af846

View File

@@ -3537,7 +3537,7 @@ void wxAuiManager::UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part,
const wxMouseEvent& event)
{
wxAuiDockUIPart* hit_test = HitTest(event.GetX(), event.GetY());
if (!hit_test)
if (!hit_test || !button_ui_part)
return;
int state = wxAUI_BUTTON_STATE_NORMAL;