X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/186baeb23726399569b1b2c972b36a3aecefa10e..2035e10e83324c6925d12725b842768f6e2b00a2:/src/gtk/menu.cpp?ds=sidebyside diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 3aff75731f..12185fcd39 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -641,9 +641,10 @@ wxString wxMenuItemBase::GetLabelFromText(const wxString& text) #if (GTK_MINOR_VERSION > 0) for ( const wxChar *pc = text.c_str(); *pc; pc++ ) { - if ( *pc == wxT('_') ) + if ( *pc == wxT('_') || *pc == wxT('&') ) { - // this is the escape character for GTK+ - skip it + // '_' is the escape character for GTK+ and '&' is the one for + // wxWindows - skip both of them continue; }