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:
parent
3ce1b2b44e
commit
b0081606f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue