X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7716e1ec9d5e52ff53aa378342959153950325b..b1229561e530e829f61887930f2004d9814743b0:/contrib/src/xml/xh_bmpbt.cpp diff --git a/contrib/src/xml/xh_bmpbt.cpp b/contrib/src/xml/xh_bmpbt.cpp index 0fa81797ee..a4230b1c74 100644 --- a/contrib/src/xml/xh_bmpbt.cpp +++ b/contrib/src/xml/xh_bmpbt.cpp @@ -60,7 +60,7 @@ wxObject *wxBitmapButtonXmlHandler::DoCreateResource() bool wxBitmapButtonXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("bitmapbutton"); + return IsOfClass(node, _T("wxBitmapButton")); }