From 83e5a9202a551b2ef49046dbb2c1de6f0b966751 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 8 May 2020 18:52:01 +0300 Subject: [PATCH 1/1] #19077 [CEA] MG-CADSurf - Advanced "Local size" with attractor Fix iteration over QMap --- src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); -- 2.30.2