]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_text.cpp
test for bug with new wu-ftpd
[wxWidgets.git] / contrib / src / xml / xh_text.cpp
index a1203536b3f6fd236f8d8b91522c99526fc0a977..59d9ba87b1fe79d19012596bce458c66a5032646 100644 (file)
@@ -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"));
 }