X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9015d579c839cb0676c75446d3b6bffd0623e970..abd474ea63667f727940a009cc3e0b23ba9f418f:/src/xrc/xh_tglbtn.cpp diff --git a/src/xrc/xh_tglbtn.cpp b/src/xrc/xh_tglbtn.cpp index 1607b0f4ef..62cb16edb1 100644 --- a/src/xrc/xh_tglbtn.cpp +++ b/src/xrc/xh_tglbtn.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_tglbtn.cpp +// Name: src/xrc/xh_tglbtn.cpp // Purpose: XRC resource for wxToggleButton // Author: Bob Mitchell // Created: 2000/03/21 @@ -71,15 +71,9 @@ void wxToggleButtonXmlHandler::DoCreateToggleButton(wxObject *control) { wxToggleButton *button = wxDynamicCast(control, wxToggleButton); - wxString label = GetText(wxT("label")); - button->Create(m_parentAsWindow, GetID(), -#if defined(__WXUNIVERSAL__) - !label.empty() ? label : GetBitmap(wxT("bitmap"), wxART_BUTTON), -#else - label, -#endif + GetText(wxT("label")), GetPosition(), GetSize(), GetStyle(), wxDefaultValidator,