diff --git a/eeschema/sim/sim_model.cpp b/eeschema/sim/sim_model.cpp index 61d9f24d6f..16e640256d 100644 --- a/eeschema/sim/sim_model.cpp +++ b/eeschema/sim/sim_model.cpp @@ -44,7 +44,7 @@ #include #include -#include +#include #include #include @@ -816,13 +816,11 @@ 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( params[ii].get().info.name == lowerParamName ) + if( boost::iequals( params[ii].get().info.name, aParamName ) ) return ii; }