From cd7be966c0b709f970f01cab8c6b7bd4e36d99cc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 23 Dec 2022 12:26:33 +0000 Subject: [PATCH] Fix typo when un-escaping parameter name. --- eeschema/sim/spice_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sim/spice_generator.cpp b/eeschema/sim/spice_generator.cpp index d5a154a03a..8bea10ff20 100644 --- a/eeschema/sim/spice_generator.cpp +++ b/eeschema/sim/spice_generator.cpp @@ -71,7 +71,7 @@ std::string SPICE_GENERATOR::ModelLine( const SPICE_ITEM& aItem ) const // Because of collisions with instance parameters, we append some model parameters // with "_". if( boost::ends_with( param.info.name, "_" ) ) - name = name.substr( 0, param.info.name.length() - 1 ); + name = param.info.name.substr( 0, param.info.name.length() - 1 ); else name = param.info.name; }