From: Vadim Zeitlin Date: Thu, 4 Jan 2001 02:30:08 +0000 (+0000) Subject: fix for Centre() (thanks Derry!) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/db89aa764f72e1f0a73d15d41f68bf13760e151b?ds=inline fix for Centre() (thanks Derry!) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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