]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_bttn.cpp
fixed bug: wxButton hasn't name set correctly
[wxWidgets.git] / contrib / src / xml / xh_bttn.cpp
index 39c58b49896f128e7f73a718cea8f888be73cc35..a689d49ed33bfde09d78c94d9d376a69aa612a38 100644 (file)
@@ -29,8 +29,9 @@ wxObject *wxButtonXmlHandler::DoCreateResource()
                                     GetID(),
                                     GetText(_T("label")),
                                     GetPosition(), GetSize(),
-                                    GetStyle());
-    button->SetName(GetName());
+                                    GetStyle(),
+                                    wxDefaultValidator,
+                                    GetName());
     if (GetBool(_T("default"), 0) == 1) button->SetDefault();
     SetupWindow(button);