[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1613
Date       : Sun Jul 30 21:12:54 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxXtra/framemanager.cpp

Fix some of the docking problems - see BIW's post to wx-dev


Diff:
Index: Trunk/XaraLX/wxXtra/framemanager.cpp
===================================================================
--- Trunk/XaraLX/wxXtra/framemanager.cpp	(revision 1612)
+++ Trunk/XaraLX/wxXtra/framemanager.cpp	(revision 1613)
@@ -1977,10 +1977,9 @@
                 frame->SetPaneWindow(p);
                 p.frame = frame;
 
-                if (p.IsShown())
-                {
-                    frame->Show();
-                }
+                if (p.frame->IsShown() != p.IsShown())
+                    p.frame->Show(p.IsShown());
+
             }
              else
             {
@@ -1994,12 +1993,14 @@
                     //p.frame->Move(p.floating_pos.x, p.floating_pos.y);
                 }
 
-                 p.frame->Show(p.IsShown());
+                if (p.frame->IsShown() != p.IsShown())
+                    p.frame->Show(p.IsShown());
             }
         }
          else
         {
-            p.window->Show(p.IsShown());
+            if (p.window->IsShown() != p.IsShown())
+                p.window->Show(p.IsShown());
         }
 
         // if "active panes" are no longer allowed, clear


Xara