7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Don't add CONSTRUCTION_GEOM to the selection.

We'll crash later after it gets freed.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20211
This commit is contained in:
Jeff Young 2025-03-04 14:12:30 +00:00
parent b0e2e9e35e
commit d9c952d90c

View File

@ -2709,6 +2709,9 @@ bool EE_SELECTION_TOOL::Selectable( const EDA_ITEM* aItem, const VECTOR2I* aPos,
break;
}
case NOT_USED: // Things like CONSTRUCTION_GEOM that aren't part of the model
return false;
default: // Suppress warnings
break;
}