]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for Centre() (thanks Derry!)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Jan 2001 02:30:08 +0000 (02:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Jan 2001 02:30:08 +0000 (02:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 760d49efc846583af740cd3e6628e6bd99e94113..59f3a09ffbf009254038513d8797706520dcbbee 100644 (file)
@@ -395,7 +395,7 @@ void wxWindowBase::Centre(int direction)
 
     // move the window to this position (keeping the old size but using
     // SetSize() and not Move() to allow xNew and/or yNew to be -1)
-    SetSize(xNew, yNew, -1, -1, wxSIZE_ALLOW_MINUS_ONE);
+    SetSize(xNew, yNew, width, height, wxSIZE_ALLOW_MINUS_ONE);
 }
 
 // fits the window around the children