X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b008b592cce934305dfa2eaaae0cd824b0d1e1cb..29fd317b4b5f7e9020ebb6f1187c5f8b3c28d5a3:/contrib/src/xml/xh_scrol.cpp diff --git a/contrib/src/xml/xh_scrol.cpp b/contrib/src/xml/xh_scrol.cpp index 6e7e2b19dc..e3c46c8b3f 100644 --- a/contrib/src/xml/xh_scrol.cpp +++ b/contrib/src/xml/xh_scrol.cpp @@ -56,7 +56,7 @@ wxObject *wxScrollBarXmlHandler::DoCreateResource() bool wxScrollBarXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("scrollbar"); + return IsOfClass(node, _T("wxScrollBar")); }