Fix issues pasting groups into ModEdit.

This commit is contained in:
Jeff Young 2020-10-20 13:37:36 +01:00
parent 28ee667080
commit 07f5428951
1 changed files with 8 additions and 0 deletions

View File

@ -585,6 +585,14 @@ void pasteModuleItemsToModEdit( MODULE* aClipModule, BOARD* aBoard,
aClipModule->GraphicalItems().clear();
for( PCB_GROUP* group : aClipModule->Groups() )
{
group->SetParent( editModule );
aPastedItems.push_back( group );
}
aClipModule->Groups().clear();
if( !aClipModule->GetReference().IsEmpty() )
{
FP_TEXT* text = new FP_TEXT( aClipModule->Reference() );