X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fff366e0ff4274c635466c3257a0aa2dcd51204..42191a1dbfc3ac161329efc3f92a9bd8901cfc8c:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 760d49efc8..59f3a09ffb 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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