]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_tglbtn.cpp
Fix typo in last commit
[wxWidgets.git] / src / xrc / xh_tglbtn.cpp
index 1607b0f4efacfb7326fe97b89549c8a9434f60ed..62cb16edb1dcaac980d6c9efb4b1772e7af5aacb 100644 (file)
@@ -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,