From 46015036604b71d0d4c5b81ce88390c3454c6d07 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 25 Aug 2024 16:06:43 -0600 Subject: [PATCH] Even the orphaned net must obey the min board clearance. (And other Default netclass constraints.) --- eeschema/sch_edit_frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ); }