don't return & in strings returned by GetLabelTop() (closes 687905)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f607434a0f
commit
4a1c207cf1
@ -888,7 +888,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]);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user