diff --git a/docs/changes.txt b/docs/changes.txt index a5b56fe933..e3a9b90961 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -224,6 +224,7 @@ wxMSW: - fixed release mode build with VC 7.x (Martin Ecker) - fix iostream.h problem with VC 7.1 (it doesn't support it any longer) - compilation fix for XRC with mingw32 +- strip ampersands from strings returned by wxMenuBar::GetLabelTop() wxMotif: diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 6420604cc5..8dc394f671 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -669,7 +669,7 @@ wxString wxMenuBar::GetLabelTop(size_t pos) const wxCHECK_MSG( pos < GetMenuCount(), wxEmptyString, wxT("invalid menu index in wxMenuBar::GetLabelTop") ); - return m_titles[pos]; + return wxMenuItem::GetLabelFromText(m_titles[pos]); } // ---------------------------------------------------------------------------