Remove unnecessary restriction for sizer parent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,11 +186,9 @@ wxObject* wxSizerXmlHandler::Handle_sizer()
|
||||
wxCHECK_MSG(m_parentSizer != NULL ||
|
||||
(parentNode && parentNode->GetType() == wxXML_ELEMENT_NODE &&
|
||||
m_parentAsWindow != NULL &&
|
||||
(m_parentAsWindow->IsKindOf(CLASSINFO(wxPanel)) ||
|
||||
m_parentAsWindow->IsKindOf(CLASSINFO(wxFrame)) ||
|
||||
m_parentAsWindow->IsKindOf(CLASSINFO(wxDialog)))
|
||||
(m_parentAsWindow->IsKindOf(CLASSINFO(wxWindow)))
|
||||
), NULL,
|
||||
wxT("Incorrect use of sizer: parent is not 'wxDialog', 'wxFrame' or 'wxPanel'."));
|
||||
wxT("Incorrect use of sizer: parent is not a 'wxWindow'."));
|
||||
|
||||
if (m_class == wxT("wxBoxSizer"))
|
||||
sizer = Handle_wxBoxSizer();
|
||||
|
Reference in New Issue
Block a user