Fix broken schematic net highlighting.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16131
(cherry picked from commit 70dad45996
)
This commit is contained in:
parent
a5ac1fc34f
commit
250720ca4a
|
@ -1111,12 +1111,12 @@ int SCH_EDITOR_CONTROL::UpdateNetHighlighting( const TOOL_EVENT& aEvent )
|
||||||
if( !fields[id].IsVisible() )
|
if( !fields[id].IsVisible() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( !item->IsBrightened() && connNames.count( pinConn->Name() ) )
|
if( !fields[id].IsBrightened() && connNames.count( pinConn->Name() ) )
|
||||||
{
|
{
|
||||||
fields[id].SetBrightened();
|
fields[id].SetBrightened();
|
||||||
redrawItem = symbol;
|
redrawItem = symbol;
|
||||||
}
|
}
|
||||||
else if( item->IsBrightened() && !connNames.count( pinConn->Name() ) )
|
else if( fields[id].IsBrightened() && !connNames.count( pinConn->Name() ) )
|
||||||
{
|
{
|
||||||
fields[id].ClearBrightened();
|
fields[id].ClearBrightened();
|
||||||
redrawItem = symbol;
|
redrawItem = symbol;
|
||||||
|
|
Loading…
Reference in New Issue