]> git.saurik.com Git - wxWidgets.git/commitdiff
Draw wxPropertyGrid drop down items with consistent (non-bold) font (fixes #12088)
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 25 May 2010 15:32:43 +0000 (15:32 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 25 May 2010 15:32:43 +0000 (15:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/editors.cpp

index 950539a507cee8a19abf1bacacedf6b172ab2b83..5867b53e1eee7671d9aaf0c4cef2ba032206c95e 100644 (file)
@@ -848,6 +848,10 @@ void wxPropertyGrid::OnComboItemPaint( const wxPGComboBox* pCb,
         else
         {
             renderFlags |= wxPGCellRenderer::ChoicePopup;
+
+            // For consistency, always use normal font when drawing drop down
+            // items
+            dc.SetFont(GetFont());
         }
 
         // If not drawing a selected popup item, then give property's