Don't allow selection of PCB_NETINFO_T

This is a version of master commit d9a94dc538
but that cannot be cherry-picked because it contains a number of
unrelated modifications

Fixes https://gitlab.com/kicad/code/kicad/issues/5729
This commit is contained in:
Seth Hillbrand 2020-11-03 10:17:25 -08:00
parent 5a6f291c72
commit bf97378168
1 changed files with 1 additions and 0 deletions

View File

@ -1772,6 +1772,7 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem, bool checkVisibilityOn
// These are not selectable // These are not selectable
case NOT_USED: case NOT_USED:
case TYPE_NOT_INIT: case TYPE_NOT_INIT:
case PCB_NETINFO_T:
return false; return false;
default: // Suppress warnings default: // Suppress warnings