Remove extra test.
Fixes https://gitlab.com/kicad/code/kicad/issues/10364
Fixes https://gitlab.com/kicad/code/kicad/issues/10364
(cherry picked from commit c78a47c3fb
)
This commit is contained in:
parent
092c11b054
commit
936040fe8b
|
@ -995,10 +995,10 @@ int BOARD_INSPECTION_TOOL::HighlightItem( const TOOL_EVENT& aEvent )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& netcodes = settings->GetHighlightNetCodes();
|
const std::set<int>& netcodes = settings->GetHighlightNetCodes();
|
||||||
|
|
||||||
// Toggle highlight when the same net was picked
|
// Toggle highlight when the same net was picked
|
||||||
if( net > 0 && netcodes.count( net ) )
|
if( netcodes.count( net ) )
|
||||||
enableHighlight = !settings->IsHighlightEnabled();
|
enableHighlight = !settings->IsHighlightEnabled();
|
||||||
|
|
||||||
if( enableHighlight != settings->IsHighlightEnabled() || !netcodes.count( net ) )
|
if( enableHighlight != settings->IsHighlightEnabled() || !netcodes.count( net ) )
|
||||||
|
|
Loading…
Reference in New Issue