Corrected off-by-1 error in dock test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2411,8 +2411,8 @@ bool wxFrameManager::DoDrop(wxDockInfoArray& docks,
|
|||||||
Position(dock_drop_offset);
|
Position(dock_drop_offset);
|
||||||
|
|
||||||
if ((
|
if ((
|
||||||
((pt.y < part->dock->rect.y + 2) && part->dock->IsHorizontal()) ||
|
((pt.y < part->dock->rect.y + 1) && part->dock->IsHorizontal()) ||
|
||||||
((pt.x < part->dock->rect.x + 2) && part->dock->IsVertical())
|
((pt.x < part->dock->rect.x + 1) && part->dock->IsVertical())
|
||||||
) && part->dock->panes.GetCount() > 1)
|
) && part->dock->panes.GetCount() > 1)
|
||||||
{
|
{
|
||||||
if ((part->dock->dock_direction == wxAUI_DOCK_TOP) ||
|
if ((part->dock->dock_direction == wxAUI_DOCK_TOP) ||
|
||||||
|
Reference in New Issue
Block a user