]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/button.cpp
guard against empty ref
[wxWidgets.git] / src / gtk1 / button.cpp
index 860efb5a35212303a7290317dbc980dd8ae38668..e12cd26f15069920aa5411cfea7598dac421e6d6 100644 (file)
@@ -185,7 +185,7 @@ void wxButton::SetLabel( const wxString &lbl )
 
     wxControl::SetLabel(label);
 
-    const wxString labelGTK = GTKConvertMnemonics(label);
+    const wxString labelGTK = GTKRemoveMnemonics(label);
 
     gtk_label_set(GTK_LABEL(BUTTON_CHILD(m_widget)), wxGTK_CONV(labelGTK));
 }