Fix deletion of items in pcbnew
Ensures the fallthrough generic deletion code path increments the deleted items counter. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17798
This commit is contained in:
parent
17bcc27ff6
commit
f8434b1c07
|
@ -2425,6 +2425,7 @@ void EDIT_TOOL::DeleteItems( const PCB_SELECTION& aItems, bool aIsCut )
|
|||
default:
|
||||
wxASSERT_MSG( parentFP == nullptr, wxT( "Try to delete an item living in a footprint" ) );
|
||||
commit.Remove( board_item );
|
||||
itemsDeleted++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue