Fix for bug #1422217. Menu items with the checked bitmap set need to
be owner drawn. This also fixes submenu items that have a bitmap. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -408,7 +408,8 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
|
||||
if ( pItem->GetBitmap().Ok() &&
|
||||
!pItem->GetTextColour().Ok() &&
|
||||
!pItem->GetBackgroundColour().Ok() &&
|
||||
!pItem->GetFont().Ok() )
|
||||
!pItem->GetFont().Ok() &&
|
||||
!pItem->GetBitmap(true).Ok() )
|
||||
{
|
||||
// try to use InsertMenuItem() as it's guaranteed to look correctly
|
||||
// while our owner-drawning code is not
|
||||
|
Reference in New Issue
Block a user