From: Václav Slavík Date: Fri, 11 Aug 2000 19:07:30 +0000 (+0000) Subject: fixed bug: wxButton hasn't name set correctly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ef02ad9ee77aebc97b28bec2350d2cbe0f2ce6e8 fixed bug: wxButton hasn't name set correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);