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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user