compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -141,7 +141,7 @@ void wxMenu::Append(wxMenuItem *pItem)
|
|||||||
wxCHECK_RET( pItem != NULL, wxT("can't append NULL item to the menu") );
|
wxCHECK_RET( pItem != NULL, wxT("can't append NULL item to the menu") );
|
||||||
|
|
||||||
#if wxUSE_ACCEL
|
#if wxUSE_ACCEL
|
||||||
wxAcceleratorEntry *accel = wxGetAccelFromMenuLabel(pItem->GetText());
|
wxAcceleratorEntry *accel = wxGetAccelFromString(pItem->GetText());
|
||||||
if ( accel ) {
|
if ( accel ) {
|
||||||
m_accels.Add(accel);
|
m_accels.Add(accel);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user