docking hint bug fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1acf0e5cff
commit
13d0b605b2
@ -2179,10 +2179,9 @@ void wxAuiNotebook::OnTabDragMotion(wxCommandEvent& evt)
|
|||||||
{
|
{
|
||||||
wxWindow* tab_ctrl = ::wxFindWindowAtPoint(screen_pt);
|
wxWindow* tab_ctrl = ::wxFindWindowAtPoint(screen_pt);
|
||||||
|
|
||||||
// if we are over a hint window, leave
|
// make sure we are not over the hint window
|
||||||
if (tab_ctrl->IsKindOf(CLASSINFO(wxFrame)))
|
if (!tab_ctrl->IsKindOf(CLASSINFO(wxFrame)))
|
||||||
return;
|
{
|
||||||
|
|
||||||
while (tab_ctrl)
|
while (tab_ctrl)
|
||||||
{
|
{
|
||||||
if (tab_ctrl->IsKindOf(CLASSINFO(wxAuiTabCtrl)))
|
if (tab_ctrl->IsKindOf(CLASSINFO(wxAuiTabCtrl)))
|
||||||
@ -2204,6 +2203,7 @@ void wxAuiNotebook::OnTabDragMotion(wxCommandEvent& evt)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// if tab moving is not allowed, leave
|
// if tab moving is not allowed, leave
|
||||||
|
Loading…
Reference in New Issue
Block a user