From 94ec6cc36284930b14d135d4c9ee75004c61e1c3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 3 Mar 2023 18:17:42 +0000 Subject: [PATCH] Convert inline models in Sim.Params fields to SPICE syntax. Fixes https://gitlab.com/kicad/code/kicad/issues/14157 (cherry picked from commit 14f1f3ec79f0def0b96abc4a0b9ef98a416c1465) --- eeschema/sim/sim_model_raw_spice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sim/sim_model_raw_spice.cpp b/eeschema/sim/sim_model_raw_spice.cpp index a4e5707621..312942a556 100644 --- a/eeschema/sim/sim_model_raw_spice.cpp +++ b/eeschema/sim/sim_model_raw_spice.cpp @@ -104,7 +104,7 @@ std::string SPICE_GENERATOR_RAW_SPICE::ItemParams() const for( const SIM_MODEL::PARAM& param : GetInstanceParams() ) { if( param.info.name == "model" ) - result.append( " " + param.value ); + result.append( " " + SIM_VALUE::ToSpice( param.value ) ); } return result;