]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected off-by-1 error in dock test.
authorRobert Roebling <robert@roebling.de>
Sun, 27 Aug 2006 20:07:14 +0000 (20:07 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 27 Aug 2006 20:07:14 +0000 (20:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 41c6de3fb81bfef9eaf2aeb605c4efdcd3ec6047..9ae35c3b1e54096e1a7cd959399e7b5f02f29ea8 100644 (file)
@@ -2411,8 +2411,8 @@ bool wxFrameManager::DoDrop(wxDockInfoArray& docks,
              Position(dock_drop_offset);
 
         if ((
-            ((pt.y < part->dock->rect.y + 2) && part->dock->IsHorizontal()) ||
-            ((pt.x < part->dock->rect.x + 2) && part->dock->IsVertical())
+            ((pt.y < part->dock->rect.y + 1) && part->dock->IsHorizontal()) ||
+            ((pt.x < part->dock->rect.x + 1) && part->dock->IsVertical())
             ) && part->dock->panes.GetCount() > 1)
         {
             if ((part->dock->dock_direction == wxAUI_DOCK_TOP) ||