]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed crash if trying to move tab to non-existant window (outside frame)
authorJulian Smart <julian@anthemion.co.uk>
Mon, 6 Nov 2006 18:54:00 +0000 (18:54 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 6 Nov 2006 18:54:00 +0000 (18:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibook.cpp

index 90377a258b46966890a8774a688f65ad50f367f8..f82b57c986a057f1dba512e79329b48bc3b85556 100644 (file)
@@ -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)
             {