]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove unnecessary restriction for sizer parent
authorJulian Smart <julian@anthemion.co.uk>
Tue, 31 Oct 2006 13:01:07 +0000 (13:01 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 31 Oct 2006 13:01:07 +0000 (13:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_sizer.cpp

index d8652b6113cd67ee56000fbb83c7440d6e0cba0b..5ce46b41bda3938b5aa142cf7ebfac49a4e6886b 100644 (file)
@@ -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();