Salome HOME
Fix a bug of 'Extrusion Along a Path' : number of rotation angles should be 1 less...
authorvsr <vsr@opencascade.com>
Fri, 21 Jan 2005 08:42:11 +0000 (08:42 +0000)
committervsr <vsr@opencascade.com>
Fri, 21 Jan 2005 08:42:11 +0000 (08:42 +0000)
src/SMESH/SMESH_MeshEditor.cxx

index f6b3c05205013e1fd013d7f9499bce430060b7a8..d71d4efdc67ab8cad8fc43fb9b3bd1e7ee70caec 100644 (file)
@@ -2085,7 +2085,7 @@ SMESH_MeshEditor::Extrusion_Error
   
   if ( theHasAngles ) {
     aItD = theAngles.begin();
   
   if ( theHasAngles ) {
     aItD = theAngles.begin();
-    for ( j=0; (aItD != theAngles.end()) && (j<aNbTP); ++aItD, ++j ) {
+    for ( j=1; (aItD != theAngles.end()) && (j<aNbTP); ++aItD, ++j ) {
       aAngle = *aItD;
       aAngles[j] = aAngle;
     }
       aAngle = *aItD;
       aAngles[j] = aAngle;
     }