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
This commit is contained in:
Jaakko Salli
2010-01-31 18:13:13 +00:00
parent f0a9f45635
commit 34c921fc4d

View File

@@ -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);
}