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:
@@ -303,7 +303,7 @@ void wxWindowBase::Centre(int direction)
|
|||||||
int widthParent, heightParent;
|
int widthParent, heightParent;
|
||||||
|
|
||||||
wxWindow *parent = GetParent();
|
wxWindow *parent = GetParent();
|
||||||
if ( parent )
|
if ( (direction & wxCENTER_FRAME) && parent )
|
||||||
{
|
{
|
||||||
parent->GetClientSize(&widthParent, &heightParent);
|
parent->GetClientSize(&widthParent, &heightParent);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user