mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Delete tracks when deleting tuning pattern as part of sel.
This commit is contained in:
parent
ab34ce295f
commit
0b526cca15
@ -2196,9 +2196,14 @@ void EDIT_TOOL::DeleteItems( const PCB_SELECTION& aItems, bool aIsCut )
|
||||
}
|
||||
else
|
||||
{
|
||||
for( BOARD_ITEM* member : static_cast<PCB_GROUP*>( board_item )->GetItems() )
|
||||
PCB_GENERATOR* generator = static_cast<PCB_GENERATOR*>( board_item );
|
||||
|
||||
for( BOARD_ITEM* member : generator->GetItems() )
|
||||
commit.Stage( member, CHT_UNGROUP );
|
||||
|
||||
for( BOARD_ITEM* member : generator->GetItems() )
|
||||
commit.Remove( member );
|
||||
|
||||
commit.Remove( board_item );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user