From 360d185e3bc18721902a6abcf8181ba7a3359e97 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 6 Jun 2024 18:53:27 -0400 Subject: [PATCH] Clear parent symbol references when flattening derived library symbols. Broken parent symbols could lead to invalid return values and flattened library symbols cannot be derived from a parent symbol. --- eeschema/lib_symbol.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/lib_symbol.cpp b/eeschema/lib_symbol.cpp index 4d1dc40888..612cf41357 100644 --- a/eeschema/lib_symbol.cpp +++ b/eeschema/lib_symbol.cpp @@ -641,6 +641,7 @@ std::unique_ptr< LIB_SYMBOL > LIB_SYMBOL::Flatten() const retv->SetExcludedFromBoard( parent->GetExcludedFromBoard() ); retv->UpdateFieldOrdinals(); + retv->m_parent.reset(); } else {