Fix broken schematic net highlighting.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16131
This commit is contained in:
Wayne Stambaugh 2023-11-23 17:28:43 -05:00
parent 029df17b5a
commit 70dad45996
1 changed files with 2 additions and 2 deletions

View File

@ -1120,12 +1120,12 @@ int SCH_EDITOR_CONTROL::UpdateNetHighlighting( const TOOL_EVENT& aEvent )
if( !fields[id].IsVisible() )
continue;
if( !item->IsBrightened() && connNames.count( pinConn->Name() ) )
if( !fields[id].IsBrightened() && connNames.count( pinConn->Name() ) )
{
fields[id].SetBrightened();
redrawItem = symbol;
}
else if( item->IsBrightened() && !connNames.count( pinConn->Name() ) )
else if( fields[id].IsBrightened() && !connNames.count( pinConn->Name() ) )
{
fields[id].ClearBrightened();
redrawItem = symbol;