From ef02ad9ee77aebc97b28bec2350d2cbe0f2ce6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 11 Aug 2000 19:07:30 +0000 Subject: [PATCH] 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 --- contrib/src/xml/xh_bttn.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);