a small fix to wxWindow::Centre

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-07-30 17:31:31 +00:00
parent 154c4aa113
commit aa994705c7

View File

@ -303,7 +303,7 @@ void wxWindowBase::Centre(int direction)
int widthParent, heightParent;
wxWindow *parent = GetParent();
if ( parent )
if ( (direction & wxCENTER_FRAME) && parent )
{
parent->GetClientSize(&widthParent, &heightParent);
}