Fix highlighting color logic when net colors are active

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10157
This commit is contained in:
Jon Evans 2022-01-02 12:11:24 -05:00
parent c52421869a
commit 134b09004b
1 changed files with 2 additions and 3 deletions

View File

@ -312,10 +312,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 );