fixed test for toplevel windows to use IsTopLevel() instead of doing magic with flags

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2007-12-12 15:28:06 +00:00
parent 8257d7cd47
commit ea813d914f

View File

@ -239,8 +239,10 @@ wxObject* wxSizerXmlHandler::Handle_sizer()
sizer->Fit(m_parentAsWindow);
m_node = nd;
if (m_parentAsWindow->GetWindowStyle() & (wxMAXIMIZE_BOX | wxRESIZE_BORDER))
if (m_parentAsWindow->IsTopLevel())
{
sizer->SetSizeHints(m_parentAsWindow);
}
}
return sizer;