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_0rc1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FV9_7_BR;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;