From: Vadim Zeitlin Date: Fri, 30 Jul 1999 17:31:31 +0000 (+0000) Subject: a small fix to wxWindow::Centre X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aa994705c74d3eed1e5a4b5d98bd3f295ff19301?hp=154c4aa11315e65a3b788e633097c668b2b91b09 a small fix to wxWindow::Centre git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 13c3f639ab..5052d51dfe 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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); }