Catch errors when saving individual symbols
Fixes https://gitlab.com/kicad/code/kicad/issues/11566
This commit is contained in:
parent
827abb01a3
commit
f4d4f23876
|
@ -225,6 +225,8 @@ bool SYMBOL_LIBRARY_MANAGER::SaveLibrary( const wxString& aLibrary, const wxStri
|
|||
{
|
||||
LIB_SYMBOL* newSymbol;
|
||||
|
||||
try
|
||||
{
|
||||
if( symbol->IsAlias() )
|
||||
{
|
||||
std::shared_ptr< LIB_SYMBOL > oldParent = symbol->GetParent().lock();
|
||||
|
@ -251,6 +253,12 @@ bool SYMBOL_LIBRARY_MANAGER::SaveLibrary( const wxString& aLibrary, const wxStri
|
|||
pi->SaveSymbol( aLibrary, new LIB_SYMBOL( *symbol ), &properties );
|
||||
}
|
||||
}
|
||||
catch( ... )
|
||||
{
|
||||
res = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue