fix for Centre() (thanks Derry!)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-01-04 02:30:08 +00:00
parent 2dc1ca847f
commit db89aa764f

View 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