]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix bug with infinite loop during "Revolution" operation
authorabd <abd@opencascade.com>
Wed, 22 Nov 2006 11:03:22 +0000 (11:03 +0000)
committerabd <abd@opencascade.com>
Wed, 22 Nov 2006 11:03:22 +0000 (11:03 +0000)
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 );