]> git.saurik.com Git - wxWidgets.git/commitdiff
move offscreen before in order to avoid transitions for mdiparent frame as it suppose...
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 9 Nov 2004 08:13:00 +0000 (08:13 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 9 Nov 2004 08:13:00 +0000 (08:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/mdi.cpp

index b009b1ebe63f785a6c3b48fea4c9b682775407fe..a5672eebec9de040dd821042e6f51689d5d122ee 100644 (file)
@@ -219,17 +219,18 @@ void wxMDIParentFrame::ActivatePrevious()
 
 bool wxMDIParentFrame::Show( bool show )
 {
-    if ( !wxFrame::Show(show) )
-        return false;
-
     // don't really show the MDI frame unless it has any children other than
     // MDI children as it is pretty useless in this case
+
     if ( show )
     {
         // TODO: check for other children
         Move(-10000, -10000);
     }
 
+    if ( !wxFrame::Show(show) )
+        return false;
+
     return true;
 }