sim_model: Fix a not handled exception that fully freeze Eeschema.
Can happens with schematics with old sim parameter syntax.
This commit is contained in:
parent
93e313440e
commit
bbdb30135e
|
@ -951,6 +951,8 @@ void SIM_MODEL::CreatePins( unsigned aSymbolPinCount )
|
|||
|
||||
template <typename T>
|
||||
void SIM_MODEL::doReadDataFields( unsigned aSymbolPinCount, const std::vector<T>* aFields )
|
||||
{
|
||||
try
|
||||
{
|
||||
m_serde->ParseEnable( GetFieldValue( aFields, ENABLE_FIELD ) );
|
||||
|
||||
|
@ -962,6 +964,11 @@ void SIM_MODEL::doReadDataFields( unsigned aSymbolPinCount, const std::vector<T>
|
|||
if( !m_serde->ParseParams( paramsField ) )
|
||||
m_serde->ParseValue( GetFieldValue( aFields, VALUE_FIELD ) );
|
||||
}
|
||||
catch( IO_ERROR& err )
|
||||
{
|
||||
DisplayErrorMessage( nullptr, err.What() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Reference in New Issue