X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e82cf9876d744d4bd79ffbe5ee023c4ff5fc135..6a205442c40cd6e22efab15fd7170a0aeab99cae:/contrib/src/xrc/xh_sizer.cpp diff --git a/contrib/src/xrc/xh_sizer.cpp b/contrib/src/xrc/xh_sizer.cpp index 2a1bbf8eb9..eaeec961c2 100644 --- a/contrib/src/xrc/xh_sizer.cpp +++ b/contrib/src/xrc/xh_sizer.cpp @@ -27,6 +27,8 @@ #include "wx/panel.h" #include "wx/tokenzr.h" +IMPLEMENT_DYNAMIC_CLASS(wxSizerXmlHandler, wxXmlResourceHandler) + bool wxSizerXmlHandler::IsSizerNode(wxXmlNode *node) { return (IsOfClass(node, wxT("wxBoxSizer"))) || @@ -140,6 +142,7 @@ wxObject *wxSizerXmlHandler::DoCreateResource() wxCHECK_MSG(m_parentSizer != NULL || (parentNode->GetType() == wxXML_ELEMENT_NODE && + m_parentAsWindow != NULL && (m_parentAsWindow->IsKindOf(CLASSINFO(wxPanel)) || m_parentAsWindow->IsKindOf(CLASSINFO(wxFrame)) || m_parentAsWindow->IsKindOf(CLASSINFO(wxDialog)))