diff --git a/eeschema/lib_symbol.cpp b/eeschema/lib_symbol.cpp index 9dfa858af9..ddaadd27a1 100644 --- a/eeschema/lib_symbol.cpp +++ b/eeschema/lib_symbol.cpp @@ -669,6 +669,7 @@ std::unique_ptr< LIB_SYMBOL > LIB_SYMBOL::Flatten() const retv->SetExcludedFromBoard( parent->GetExcludedFromBoard() ); retv->UpdateFieldOrdinals(); + retv->m_parent.reset(); } else {