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
This commit is contained in:
Julian Smart 2006-11-06 18:54:00 +00:00
parent 99a2637bdb
commit bc58b35389

View 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)
{