lib_manager: Do not make a copy of the parent symbol to save

The parent symbol needs to be the same pointer as the symbol that is
saved to the cache otherwise the derived symbol will have it's parent
set to a parent that is not in the cache so it will not be saved.

Signed-off-by: Kevin Lannen <kevin.lannen@gmail.com>
This commit is contained in:
Kevin Lannen 2020-08-03 22:28:31 -06:00 committed by Wayne Stambaugh
parent 13f9478a76
commit e54363524c
1 changed files with 1 additions and 2 deletions

View File

@ -1066,8 +1066,7 @@ bool LIB_MANAGER::LIB_BUFFER::SaveBuffer( LIB_MANAGER::PART_BUFFER::PTR aPartBuf
// Save the modified root symbol.
try
{
aPlugin->SaveSymbol( m_libName, new LIB_PART( *part ),
aBuffer ? &properties : nullptr );
aPlugin->SaveSymbol( m_libName, parentSymbol, aBuffer ? &properties : nullptr );
}
catch( const IO_ERROR& ioe )
{