]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/checkbox.cpp
Combine two wxImage-to-pixmap creation functions into one.
[wxWidgets.git] / src / motif / checkbox.cpp
index 6d03da153a25f23a17109db22236277d852c7161..f4b8b886441b849342427fcd8c889a6534f401ff 100644 (file)
@@ -63,8 +63,7 @@ bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label,
                                    name ) )
         return false;
 
-    wxString label1(wxStripMenuCodes(label));
-    wxXmString text( label1 );
+    wxXmString text( GetLabelText(label) );
 
     Widget parentWidget = (Widget) parent->GetClientWidget();