wxMenuItem::GetLabelFromText() added/documented, bug in wxMenu::FindItem() fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -252,7 +252,7 @@ bool wxMenuBase::DoDestroy(wxMenuItem *item)
|
||||
// Finds the item id matching the given string, -1 if not found.
|
||||
int wxMenuBase::FindItem(const wxString& text) const
|
||||
{
|
||||
wxString label = wxMenuItem(NULL, wxID_SEPARATOR, text).GetLabel();
|
||||
wxString label = wxMenuItem::GetLabelFromText(text);
|
||||
for ( wxMenuItemList::Node *node = m_items.GetFirst();
|
||||
node;
|
||||
node = node->GetNext() )
|
||||
|
Reference in New Issue
Block a user