diff --git a/contrib/src/xml/xh_bttn.cpp b/contrib/src/xml/xh_bttn.cpp index 39c58b4989..a689d49ed3 100644 --- a/contrib/src/xml/xh_bttn.cpp +++ b/contrib/src/xml/xh_bttn.cpp @@ -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);