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:
parent
6dcb9bb664
commit
360d185e3b
|
@ -641,6 +641,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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue