Fix crash bug in Select All / Delete.

We only expect footprint edge selections in the Footprint Editor.
They cause PCBNew's undo architecture to wrap itself in knots.
This commit is contained in:
Jeff Young 2020-09-03 13:15:08 +01:00
parent 3ce1b2b44e
commit b0081606f7
1 changed files with 6 additions and 0 deletions

View File

@ -1873,6 +1873,12 @@ bool SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibilityOn
break;
case PCB_MODULE_EDGE_T:
// Module edge selections are only allowed in modedit mode.
if( !m_editModules )
return false;
break;
case PCB_PAD_T:
{
// Multiple selection is only allowed in modedit mode. In pcbnew, you have to select