]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
Minor header cleaning.
[wxWidgets.git] / src / motif / control.cpp
index 13b8146af7117f15044a8e3bd7a549e5c4fc6a63..4026913541173fafbe2439ee4d5103e2c4527fff 100644 (file)
@@ -85,7 +85,7 @@ void wxControl::SetLabel(const wxString& label)
     if (!widget)
         return;
 
     if (!widget)
         return;
 
-    wxXmString label_str(wxStripMenuCodes(label));
+    wxXmString label_str(GetLabelText(label));
 
     XtVaSetValues (widget,
         XmNlabelString, label_str(),
 
     XtVaSetValues (widget,
         XmNlabelString, label_str(),