diff --git a/eeschema/sim/sim_model.cpp b/eeschema/sim/sim_model.cpp index 4961167a8e..6695618f9e 100644 --- a/eeschema/sim/sim_model.cpp +++ b/eeschema/sim/sim_model.cpp @@ -1591,6 +1591,19 @@ void SIM_MODEL::MigrateSimModel( T_symbol& aSymbol, const PROJECT* aProject ) { spiceModelInfo = FIELD_INFO( getSIValue( modelField ), modelField ); aSymbol.RemoveField( modelField ); + + if( spiceModelInfo.m_Text.Contains( ' ' ) ) + { + wxString params; + + spiceModelInfo.m_Text = spiceModelInfo.m_Text.BeforeFirst( ' ', ¶ms ); + + if( !params.Trim( false ).IsEmpty() ) + { + spiceParamsInfo = spiceModelInfo; + spiceParamsInfo.m_Text = params.Trim( false ); + } + } } else {