]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for bug #1422217. Menu items with the checked bitmap set need to
authorRobin Dunn <robin@alldunn.com>
Thu, 2 Feb 2006 20:59:24 +0000 (20:59 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 2 Feb 2006 20:59:24 +0000 (20:59 +0000)
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

src/msw/menu.cpp

index 69244364609b425dd90d6885042c0a436ba5460e..4157d86fb0d7cd0bc752875126aeddf816e8c104 100644 (file)
@@ -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