Add footprint zones to paste routine.

Fixes https://gitlab.com/kicad/code/kicad/issues/7442
This commit is contained in:
Jeff Young 2021-02-07 11:11:00 +00:00
parent d70cebcd62
commit 0ca76571ce
1 changed files with 8 additions and 0 deletions

View File

@ -594,6 +594,14 @@ static void pasteFootprintItemsToFootprintEditor( FOOTPRINT* aClipFootprint, BOA
aClipFootprint->GraphicalItems().clear();
for( FP_ZONE* zone : aClipFootprint->Zones() )
{
zone->SetParent( editorFootprint );
aPastedItems.push_back( zone );
}
aClipFootprint->Zones().clear();
for( PCB_GROUP* group : aClipFootprint->Groups() )
{
group->SetParent( editorFootprint );