Salome HOME
Fix bug with infinite loop during "Revolution" operation
[modules/smesh.git] / src / SMDS / SMDS_VolumeTool.cxx
index 204ebab1867e1f233b62f797dd293d4aea3393c5..66185f0bffe0e1cf44382193549c326cb248770b 100644 (file)
@@ -1266,7 +1266,7 @@ bool SMDS_VolumeTool::IsFreeFace( int faceIndex )
   if ( IsFaceExternal( faceIndex ))
     intNormal = XYZ( -intNormal.x, -intNormal.y, -intNormal.z );
   XYZ p0 ( nodes[0] ), baryCenter;
-  for ( vNbIt = volNbShared.begin(); vNbIt != volNbShared.end(); vNbIt++ ) {
+  for ( vNbIt = volNbShared.begin(); vNbIt != volNbShared.end(); ) {
     int nbShared = (*vNbIt).second;
     if ( nbShared >= 3 ) {
       SMDS_VolumeTool volume( (*vNbIt).first );