Fix broken schematic net highlighting.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16131
This commit is contained in:
parent
029df17b5a
commit
70dad45996
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue