]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
fixed hidden root expansion in extreme usage case
[wxWidgets.git] / src / common / wincmn.cpp
index 1d70eebd623700259a1b7957126e362d4f45072b..91bdb40bc8f596efda8f1593a3b6c2dae5ca5532 100644 (file)
@@ -364,6 +364,8 @@ void wxWindowBase::Centre(int direction)
             }
         }
 
+        // there is no wxTopLevelWindow under wxMotif yet
+#ifndef __WXMOTIF__
         // we shouldn't center the dialog on the iconized window: under
         // Windows, for example, this places it completely off the screen
         if ( parent )
@@ -374,6 +376,7 @@ void wxWindowBase::Centre(int direction)
                 parent = NULL;
             }
         }
+#endif // __WXMOTIF__
 
         // did we find the parent?
         if ( !parent )