X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09dc1241b72e4c03d2ebd757bb063296aef7a18e..b1229561e530e829f61887930f2004d9814743b0:/contrib/src/xml/xh_text.cpp diff --git a/contrib/src/xml/xh_text.cpp b/contrib/src/xml/xh_text.cpp index a1203536b3..59d9ba87b1 100644 --- a/contrib/src/xml/xh_text.cpp +++ b/contrib/src/xml/xh_text.cpp @@ -40,8 +40,8 @@ wxObject *wxTextCtrlXmlHandler::DoCreateResource() GetText(_T("value")), GetPosition(), GetSize(), GetStyle(), - wxDefaultValidator, - GetText(_T("name")) + wxDefaultValidator, + GetName() ); SetupWindow(text); @@ -52,7 +52,7 @@ wxObject *wxTextCtrlXmlHandler::DoCreateResource() bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("textctrl"); + return IsOfClass(node, _T("wxTextCtrl")); }