X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6edf1107031284fdcf5e6eabc6b87a7367e28185..39fbbfda3c702e44d0c128a39440a321489b9b28:/src/gtk1/menu.cpp diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 3d7ac67525..f4d591fe98 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -797,6 +797,9 @@ wxString wxMenuItemBase::GetLabelFromText(const wxString& text) for ( const wxChar *pc = text.c_str(); *pc; pc++ ) { + if ( *pc == wxT('\t')) + break; + if ( *pc == wxT('_') ) { // GTK 1.2 escapes "xxx_xxx" to "xxx__xxx"