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:
parent
154c4aa113
commit
aa994705c7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user