X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b008b592cce934305dfa2eaaae0cd824b0d1e1cb..0f05afccede840e04872bfc82103b689b8edc447:/contrib/src/xml/xh_tree.cpp diff --git a/contrib/src/xml/xh_tree.cpp b/contrib/src/xml/xh_tree.cpp index b10dc6ce94..941648be98 100644 --- a/contrib/src/xml/xh_tree.cpp +++ b/contrib/src/xml/xh_tree.cpp @@ -51,7 +51,7 @@ wxObject *wxTreeCtrlXmlHandler::DoCreateResource() bool wxTreeCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("treectrl"); + return IsOfClass(node, _T("wxTreeCtrl")); }