From db89aa764f72e1f0a73d15d41f68bf13760e151b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Jan 2001 02:30:08 +0000 Subject: [PATCH] fix for Centre() (thanks Derry!) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0