X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02e8b2f9fbdfcd25080c42082d637da257c20094..8704bf74fba8523e2e174bd5a8195b5202009cd0:/src/motif/button.cpp diff --git a/src/motif/button.cpp b/src/motif/button.cpp index 455f2e17fb..8a8ae59c49 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -14,6 +14,7 @@ #endif #include "wx/button.h" +#include "wx/utils.h" #include #include @@ -45,9 +46,9 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label, else m_windowId = id; - char* label1 = (label.IsNull() ? "" : (char*) (const char*) label); + wxString label1(wxStripMenuCodes(label)); - XmString text = XmStringCreateSimple (label1); + XmString text = XmStringCreateSimple ((char*) (const char*) label1); Widget parentWidget = (Widget) parent->GetClientWidget(); /*