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

View File

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