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:
parent
99a2637bdb
commit
bc58b35389
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user