From c78a47c3fb9905ec9bdf0a5342bbcc7a4f2b576a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 14 Apr 2022 00:14:46 +0100 Subject: [PATCH] Remove extra test. Fixes https://gitlab.com/kicad/code/kicad/issues/10364 Fixes https://gitlab.com/kicad/code/kicad/issues/10364 --- pcbnew/tools/board_inspection_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/board_inspection_tool.cpp b/pcbnew/tools/board_inspection_tool.cpp index a4f9d3fc18..327bc1bcbb 100644 --- a/pcbnew/tools/board_inspection_tool.cpp +++ b/pcbnew/tools/board_inspection_tool.cpp @@ -1028,10 +1028,10 @@ int BOARD_INSPECTION_TOOL::HighlightItem( const TOOL_EVENT& aEvent ) } } - auto& netcodes = settings->GetHighlightNetCodes(); + const std::set& netcodes = settings->GetHighlightNetCodes(); // Toggle highlight when the same net was picked - if( net > 0 && netcodes.count( net ) ) + if( netcodes.count( net ) ) enableHighlight = !settings->IsHighlightEnabled(); if( enableHighlight != settings->IsHighlightEnabled() || !netcodes.count( net ) )