diff --git a/pcbnew/tools/pcb_control.cpp b/pcbnew/tools/pcb_control.cpp index 33aa1c911d..b894770a3c 100644 --- a/pcbnew/tools/pcb_control.cpp +++ b/pcbnew/tools/pcb_control.cpp @@ -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 );