]> git.saurik.com Git - wxWidgets.git/commitdiff
checking that a wxWindow is of run-time type wxWindow is hopefully useless
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Oct 2006 13:10:21 +0000 (13:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Oct 2006 13:10:21 +0000 (13:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_sizer.cpp

index 5ce46b41bda3938b5aa142cf7ebfac49a4e6886b..b33ac93219a4ec8baf5237820988e7b97453d555 100644 (file)
@@ -185,10 +185,8 @@ wxObject* wxSizerXmlHandler::Handle_sizer()
 
     wxCHECK_MSG(m_parentSizer != NULL ||
                 (parentNode && parentNode->GetType() == wxXML_ELEMENT_NODE &&
 
     wxCHECK_MSG(m_parentSizer != NULL ||
                 (parentNode && parentNode->GetType() == wxXML_ELEMENT_NODE &&
-                 m_parentAsWindow != NULL &&
-                 (m_parentAsWindow->IsKindOf(CLASSINFO(wxWindow)))
-                    ), NULL,
-                wxT("Incorrect use of sizer: parent is not a 'wxWindow'."));
+                 m_parentAsWindow), NULL,
+                wxT("Sizer must have a window parent node"));
 
     if (m_class == wxT("wxBoxSizer"))
         sizer = Handle_wxBoxSizer();
 
     if (m_class == wxT("wxBoxSizer"))
         sizer = Handle_wxBoxSizer();