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 360d185e3b)
This commit is contained in:
Wayne Stambaugh 2024-06-06 18:53:27 -04:00
parent bdd5a752dc
commit 03dd6c7a8e
1 changed files with 1 additions and 0 deletions

View File

@ -669,6 +669,7 @@ std::unique_ptr< LIB_SYMBOL > LIB_SYMBOL::Flatten() const
retv->SetExcludedFromBoard( parent->GetExcludedFromBoard() ); retv->SetExcludedFromBoard( parent->GetExcludedFromBoard() );
retv->UpdateFieldOrdinals(); retv->UpdateFieldOrdinals();
retv->m_parent.reset();
} }
else else
{ {