Correction for menu code problem introduced in 2.8.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -773,12 +773,15 @@ wxMenuItem::~wxMenuItem()
|
|||||||
/* static */
|
/* static */
|
||||||
wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
|
wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
// The argument to this function will now always be in wxWidgets standard label
|
// The argument to this function will now always be in wxWidgets standard label
|
||||||
// format, not GTK+ format, so we do what the other ports do.
|
// format, not GTK+ format, so we do what the other ports do.
|
||||||
|
// Actually, m_text is in GTK+ format this function is used on it
|
||||||
|
// we need to retain the original code below.
|
||||||
|
|
||||||
return wxStripMenuCodes(text);
|
return wxStripMenuCodes(text);
|
||||||
|
|
||||||
#if 0
|
#else
|
||||||
wxString label;
|
wxString label;
|
||||||
|
|
||||||
for ( const wxChar *pc = text.c_str(); *pc; pc++ )
|
for ( const wxChar *pc = text.c_str(); *pc; pc++ )
|
||||||
|
Reference in New Issue
Block a user