X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/854e189f90dac9ba5e0239bca79aed64e8d6f46c..6a205442c40cd6e22efab15fd7170a0aeab99cae:/contrib/src/xrc/xh_sizer.cpp diff --git a/contrib/src/xrc/xh_sizer.cpp b/contrib/src/xrc/xh_sizer.cpp index f26bac9e7a..eaeec961c2 100644 --- a/contrib/src/xrc/xh_sizer.cpp +++ b/contrib/src/xrc/xh_sizer.cpp @@ -142,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)))