X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b008b592cce934305dfa2eaaae0cd824b0d1e1cb..8173fefe0a9d61cfe5244a301044aa2269bc1c31:/contrib/src/xml/xh_tree.cpp diff --git a/contrib/src/xml/xh_tree.cpp b/contrib/src/xml/xh_tree.cpp index b10dc6ce94..b1f5d3625a 100644 --- a/contrib/src/xml/xh_tree.cpp +++ b/contrib/src/xml/xh_tree.cpp @@ -35,7 +35,7 @@ wxTreeCtrlXmlHandler::wxTreeCtrlXmlHandler() wxObject *wxTreeCtrlXmlHandler::DoCreateResource() { - wxTreeCtrl *tree = new wxTreeCtrl(m_ParentAsWindow, + wxTreeCtrl *tree = new wxTreeCtrl(m_parentAsWindow, GetID(), GetPosition(), GetSize(), GetStyle(), @@ -51,7 +51,7 @@ wxObject *wxTreeCtrlXmlHandler::DoCreateResource() bool wxTreeCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("treectrl"); + return IsOfClass(node, wxT("wxTreeCtrl")); }