Fix incomplete stripping of menu text.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-04-18 10:15:52 +00:00
parent 11c5b47d94
commit f0b72e0d9a
2 changed files with 6 additions and 0 deletions

View File

@@ -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"