Ensure we do not use a non existing pin in SIM_MODEL::MigrateSimModel()
Fixes #14522 https://gitlab.com/kicad/code/kicad/issues/14522
This commit is contained in:
parent
9b0a92552a
commit
f56e569a25
|
@ -1635,7 +1635,7 @@ void SIM_MODEL::MigrateSimModel( T_symbol& aSymbol, const PROJECT* aProject )
|
|||
}
|
||||
else
|
||||
{
|
||||
for( unsigned ii = 0; ii < pinIndexes.size(); ++ii )
|
||||
for( unsigned ii = 0; ii < pinIndexes.size() && ii < sourcePins.size(); ++ii )
|
||||
{
|
||||
if( ii > 0 )
|
||||
pinMap.Append( wxS( " " ) );
|
||||
|
|
Loading…
Reference in New Issue