From 248de56fb02ebc28d71ff44c1e20535d5c420079 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 24 May 2023 08:54:16 -0700 Subject: [PATCH] Revert "fix bug whereby spice params with capital letters no longer cause an error and data loss" This reverts commit 888a35bbde0e7d4a9533ac20cb36abec4c8f22b8. --- eeschema/sim/sim_model.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eeschema/sim/sim_model.cpp b/eeschema/sim/sim_model.cpp index 16e640256d..61d9f24d6f 100644 --- a/eeschema/sim/sim_model.cpp +++ b/eeschema/sim/sim_model.cpp @@ -44,7 +44,7 @@ #include #include -#include +#include #include #include @@ -816,11 +816,13 @@ const SIM_MODEL::PARAM& SIM_MODEL::GetParam( unsigned aParamIndex ) const int SIM_MODEL::doFindParam( const std::string& aParamName ) const { + std::string lowerParamName = boost::to_lower_copy( aParamName ); + std::vector> params = GetParams(); for( int ii = 0; ii < (int) params.size(); ++ii ) { - if( boost::iequals( params[ii].get().info.name, aParamName ) ) + if( params[ii].get().info.name == lowerParamName ) return ii; }