use the menu item text, not label, in the owner drawn items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,7 +89,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu,
|
||||
wxMenu *pSubMenu)
|
||||
: wxMenuItemBase(pParentMenu, id, text, strHelp, kind, pSubMenu)
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
, wxOwnerDrawn(GetLabelFromText(text), kind == wxITEM_CHECK)
|
||||
, wxOwnerDrawn(text, kind == wxITEM_CHECK)
|
||||
#endif // owner drawn
|
||||
{
|
||||
Init();
|
||||
@@ -104,7 +104,7 @@ wxMenuItem::wxMenuItem(wxMenu *parentMenu,
|
||||
: wxMenuItemBase(parentMenu, id, text, help,
|
||||
isCheckable ? wxITEM_CHECK : wxITEM_NORMAL, subMenu)
|
||||
#if wxUSE_OWNER_DRAWN
|
||||
, wxOwnerDrawn(GetLabelFromText(text), isCheckable)
|
||||
, wxOwnerDrawn(text, isCheckable)
|
||||
#endif // owner drawn
|
||||
{
|
||||
Init();
|
||||
|
Reference in New Issue
Block a user