From: Julian Smart Date: Mon, 6 Nov 2006 18:54:00 +0000 (+0000) Subject: Fixed crash if trying to move tab to non-existant window (outside frame) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc58b353898cc0015b44687922f3195a0a4e2159 Fixed crash if trying to move tab to non-existant window (outside frame) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 90377a258b..f82b57c986 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -2180,7 +2180,7 @@ void wxAuiNotebook::OnTabDragMotion(wxCommandEvent& evt) wxWindow* tab_ctrl = ::wxFindWindowAtPoint(screen_pt); // make sure we are not over the hint window - if (!tab_ctrl->IsKindOf(CLASSINFO(wxFrame))) + if (tab_ctrl && !tab_ctrl->IsKindOf(CLASSINFO(wxFrame))) { while (tab_ctrl) {