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:
JamesJ 2024-04-18 23:37:37 +01:00
parent 17bcc27ff6
commit f8434b1c07
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}