X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52af3158e974b042008474268570f3bdb7ce95ee..dc874fb4cebf75d39cc97210e0f4b6a35403e4a6:/src/os2/menu.cpp diff --git a/src/os2/menu.cpp b/src/os2/menu.cpp index 573611a005..7dc55b2412 100644 --- a/src/os2/menu.cpp +++ b/src/os2/menu.cpp @@ -201,7 +201,7 @@ void wxMenu::UpdateAccel( // // Find the (new) accel for this item // - wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->GetText()); + wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->GetItemLabel()); if (pAccel) pAccel->m_command = pItem->GetId(); @@ -323,7 +323,7 @@ bool wxMenu::DoInsertOrAppend( wxMenuItem* pItem, // rItem.afStyle |= MIS_TEXT; } - pData = (char*) pItem->GetText().wx_str(); + pData = (char*) pItem->GetItemLabel().wx_str(); } if (nPos == (size_t)-1)