]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
Blob support fixes - still does not work, but getting there
[wxWidgets.git] / 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