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:
parent
13f9478a76
commit
e54363524c
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue