From: eap Date: Fri, 8 May 2020 15:52:01 +0000 (+0300) Subject: #19077 [CEA] MG-CADSurf - Advanced "Local size" with attractor X-Git-Tag: V9_5_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=83e5a9202a551b2ef49046dbb2c1de6f0b966751;p=plugins%2Fblsurfplugin.git #19077 [CEA] MG-CADSurf - Advanced "Local size" with attractor Fix iteration over QMap --- diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index b8e97a8..243a1f0 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -645,8 +645,9 @@ bool BLSURFPluginGUI_HypothesisCreator::checkParams(QString& msg) const double size = i.value().toDouble( &isValue ); ok = ( !isValue || size >= minSize ); } - for ( QMapIterator i( myATTMap ); i.hasNext() && ok ; i.next() ) + for ( QMapIterator i( myATTMap ); i.hasNext() && ok ; ) { + i.next(); const TAttractorVec& attVec = i.value(); for ( size_t i = 0; i < attVec.size(); ++i ) ok = ( attVec[i].IsToDelete() || attVec[i].startSize >= minSize ); @@ -667,8 +668,9 @@ bool BLSURFPluginGUI_HypothesisCreator::checkParams(QString& msg) const double size = i.value().toDouble( &isValue ); ok = ( !isValue || size <= userSize ); } - for ( QMapIterator i( myATTMap ); i.hasNext() && ok ; i.next() ) + for ( QMapIterator i( myATTMap ); i.hasNext() && ok ; ) { + i.next(); const TAttractorVec& attVec = i.value(); for ( size_t i = 0; i < attVec.size(); ++i ) ok = ( attVec[i].IsToDelete() || attVec[i].startSize <= userSize );