]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_sizer.cpp
Applied patch [ 809066 ] Cleanup for text2rtf
[wxWidgets.git] / contrib / src / xrc / xh_sizer.cpp
index f26bac9e7ad3004e6575bbe348c9b533a4253b74..eaeec961c29237c780a498936d1e5ba01eb35f2b 100644 (file)
@@ -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)))