Symbol editor: fix crash whe changing symbol name.
Fixes https://gitlab.com/kicad/code/kicad/issues/7791
This commit is contained in:
parent
7a00e01b3e
commit
6cdc3664ba
|
@ -897,7 +897,8 @@ bool SYMBOL_LIBRARY_MANAGER::LIB_BUFFER::SaveBuffer( SYMBOL_LIBRARY_MANAGER::PAR
|
|||
// Delete the original symbol if the symbol name has been changed.
|
||||
if( part->GetName() != originalPart->GetName() )
|
||||
{
|
||||
aLibTable->DeleteSymbol( m_libName, originalPart->GetName() );
|
||||
if( aLibTable->LoadSymbol( m_libName, originalPart->GetName() ) )
|
||||
aLibTable->DeleteSymbol( m_libName, originalPart->GetName() );
|
||||
}
|
||||
|
||||
if( part->IsAlias() )
|
||||
|
|
Loading…
Reference in New Issue