]> git.saurik.com Git - wxWidgets.git/commitdiff
a small fix to wxWindow::Centre
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jul 1999 17:31:31 +0000 (17:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Jul 1999 17:31:31 +0000 (17:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 13c3f639ab2908e35efd9a9168d5011b8c6940c3..5052d51dfee0ba022fb34e702cfd3b62385d220d 100644 (file)
@@ -303,7 +303,7 @@ void wxWindowBase::Centre(int direction)
     int widthParent, heightParent;
 
     wxWindow *parent = GetParent();
-    if ( parent )
+    if ( (direction & wxCENTER_FRAME) && parent )
     {
         parent->GetClientSize(&widthParent, &heightParent);
     }