diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index 72b1719fc5..211a3cdcf7 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -803,8 +803,9 @@ void SCH_EDIT_FRAME::AddCopyForRepeatItem( const SCH_ITEM* aItem ) { std::unique_ptr repeatItem( static_cast( aItem->Duplicate() ) ); - // Clone() preserves the flags, we want 'em cleared. + // Clone() preserves the flags & parent, we want 'em cleared. repeatItem->ClearFlags(); + repeatItem->SetParent( nullptr ); m_items_to_repeat.emplace_back( std::move( repeatItem ) ); }