From: Jaakko Salli Date: Sun, 31 Jan 2010 18:13:13 +0000 (+0000) Subject: Fixed value column rendering for properties which do not create editor control when... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/34c921fc4d717eb605a7c19e090f4a1735e4d8e4 Fixed value column rendering for properties which do not create editor control when selected git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 6e780a764f..d74291cfd3 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -2437,9 +2437,8 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc, { dc.SetBrush(m_colPropBack); dc.SetPen(m_colPropBack); - dc.SetTextForeground(m_colDisPropFore); if ( p->IsEnabled() ) - dc.SetTextForeground(rowFgCol); + dc.SetTextForeground(m_colPropFore); else dc.SetTextForeground(m_colDisPropFore); }