Draw wxPropertyGrid drop down items with consistent (non-bold) font (fixes #12088)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2010-05-25 15:32:43 +00:00
parent ace9bc2697
commit b8ea299a7e

View File

@ -848,6 +848,10 @@ void wxPropertyGrid::OnComboItemPaint( const wxPGComboBox* pCb,
else else
{ {
renderFlags |= wxPGCellRenderer::ChoicePopup; 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 // If not drawing a selected popup item, then give property's