From bf97378168da308e81035b9f06ae3105b5cab9ea Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 3 Nov 2020 10:17:25 -0800 Subject: [PATCH] Don't allow selection of PCB_NETINFO_T This is a version of master commit d9a94dc5384aeaf162866fca124c8300152471c2 but that cannot be cherry-picked because it contains a number of unrelated modifications Fixes https://gitlab.com/kicad/code/kicad/issues/5729 --- pcbnew/tools/selection_tool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index 1a36540b4f..ad17d01b6b 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -1772,6 +1772,7 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem, bool checkVisibilityOn // These are not selectable case NOT_USED: case TYPE_NOT_INIT: + case PCB_NETINFO_T: return false; default: // Suppress warnings