Fix highlighting color logic when net colors are active

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10157

(cherry picked from commit 134b09004b)
This commit is contained in:
Jon Evans 2022-01-02 12:11:24 -05:00
parent 41e8606fe6
commit 0e2f79ad8d
1 changed files with 2 additions and 3 deletions

View File

@ -235,10 +235,9 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons
}
if( netColor == COLOR4D::UNSPECIFIED )
{
netColor = color;
}
else if( selected )
if( selected )
{
// Selection brightening overrides highlighting
netColor.Brighten( m_selectFactor );