From: rnv Date: Thu, 6 May 2021 13:27:19 +0000 (+0300) Subject: Fix copy-paste issue: compare iterators of a different maps causes exception under... X-Git-Tag: V9_7_0rc2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6332b010ea18e0a48c0cd142cf9ecc208365cb7b;p=plugins%2Fblsurfplugin.git Fix copy-paste issue: compare iterators of a different maps causes exception under Windows in debug mode. --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index e69a269..9b85b3b 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -1216,7 +1216,7 @@ std::string BLSURFPlugin_Hypothesis::GetPreCADOptionValue(const std::string& opt if ( val.empty() && isDefault ) { op_val = _defaultOptionValues.find( optionName ); - if (op_val != _option2value.end()) + if (op_val != _defaultOptionValues.end()) val = op_val->second; } return val;