Use conditional operator instead of conditional statement
This commit is contained in:
@@ -2124,11 +2124,7 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
|
|||||||
wxBrush capbgbrush(m_colCapBack,wxBRUSHSTYLE_SOLID);
|
wxBrush capbgbrush(m_colCapBack,wxBRUSHSTYLE_SOLID);
|
||||||
wxPen linepen(m_colLine,1,wxPENSTYLE_SOLID);
|
wxPen linepen(m_colLine,1,wxPENSTYLE_SOLID);
|
||||||
|
|
||||||
wxColour selBackCol;
|
wxColour selBackCol = isPgEnabled ? m_colSelBack : m_colMargin;
|
||||||
if ( isPgEnabled )
|
|
||||||
selBackCol = m_colSelBack;
|
|
||||||
else
|
|
||||||
selBackCol = m_colMargin;
|
|
||||||
|
|
||||||
// pen that has same colour as text
|
// pen that has same colour as text
|
||||||
wxPen outlinepen(m_colPropFore,1,wxPENSTYLE_SOLID);
|
wxPen outlinepen(m_colPropFore,1,wxPENSTYLE_SOLID);
|
||||||
|
Reference in New Issue
Block a user