diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 246a89eefd..fee91a8116 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3010,24 +3010,14 @@ bool wxAuiManager::DoDrop(wxAuiDockInfoArray& docks, if (!part->dock->fixed || part->dock->dock_direction == wxAUI_DOCK_CENTER || pt.x >= cli_size.x || pt.x <= 0 || pt.y >= cli_size.y || pt.y <= 0) { - if (m_lastRect.IsEmpty() || m_lastRect.Contains(pt.x, pt.y )) + if ((m_flags & wxAUI_MGR_ALLOW_FLOATING) && drop.IsFloatable()) { - m_skipping = true; + drop.Float(); } else { - if ((m_flags & wxAUI_MGR_ALLOW_FLOATING) && drop.IsFloatable()) - { - drop.Float(); - } - - m_skipping = false; - - return ProcessDockResult(target, drop); + drop.Position(pt.x - GetDockPixelOffset(drop) - offset.x); } - - drop.Position(pt.x - GetDockPixelOffset(drop) - offset.x); - return ProcessDockResult(target, drop); }