From 03dd6c7a8ebd38749f353eaea9e79995c97a0ce0 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. (cherry picked from commit 360d185e3bc18721902a6abcf8181ba7a3359e97) --- eeschema/lib_symbol.cpp | 1 + 1 file changed, 1 insertion(+) 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 {