]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 1736135 ] AUI: Clicking caption ignored on centered panel
authorJulian Smart <julian@anthemion.co.uk>
Tue, 21 Aug 2007 11:15:09 +0000 (11:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 21 Aug 2007 11:15:09 +0000 (11:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 6195560341ab4680c21132e69c6b2eadaf052424..664c02947df46226d27105edcd0f56492e2102d7 100644 (file)
@@ -3846,9 +3846,6 @@ void wxAuiManager::OnLeftDown(wxMouseEvent& event)
 
 
 
 
 
 
-            if (part->dock && part->dock->dock_direction == wxAUI_DOCK_CENTER)
-                return;
-
             if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
             {
                 // set the caption as active
             if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
             {
                 // set the caption as active
@@ -3856,6 +3853,9 @@ void wxAuiManager::OnLeftDown(wxMouseEvent& event)
                 Repaint();
             }
 
                 Repaint();
             }
 
+            if (part->dock && part->dock->dock_direction == wxAUI_DOCK_CENTER)
+                return;
+
             m_action = actionClickCaption;
             m_action_part = part;
             m_action_start = wxPoint(event.m_x, event.m_y);
             m_action = actionClickCaption;
             m_action_part = part;
             m_action_start = wxPoint(event.m_x, event.m_y);