don't return & in strings returned by GetLabelTop() (closes 687905)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -224,6 +224,7 @@ wxMSW:
|
|||||||
- fixed release mode build with VC 7.x (Martin Ecker)
|
- 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)
|
- fix iostream.h problem with VC 7.1 (it doesn't support it any longer)
|
||||||
- compilation fix for XRC with mingw32
|
- compilation fix for XRC with mingw32
|
||||||
|
- strip ampersands from strings returned by wxMenuBar::GetLabelTop()
|
||||||
|
|
||||||
wxMotif:
|
wxMotif:
|
||||||
|
|
||||||
|
@@ -669,7 +669,7 @@ wxString wxMenuBar::GetLabelTop(size_t pos) const
|
|||||||
wxCHECK_MSG( pos < GetMenuCount(), wxEmptyString,
|
wxCHECK_MSG( pos < GetMenuCount(), wxEmptyString,
|
||||||
wxT("invalid menu index in wxMenuBar::GetLabelTop") );
|
wxT("invalid menu index in wxMenuBar::GetLabelTop") );
|
||||||
|
|
||||||
return m_titles[pos];
|
return wxMenuItem::GetLabelFromText(m_titles[pos]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user