]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for the #trefs 127: regression - modification mode deletes section when modify...
authornds <nds@opencascade.com>
Fri, 22 Nov 2013 06:17:23 +0000 (06:17 +0000)
committernds <nds@opencascade.com>
Fri, 22 Nov 2013 06:17:23 +0000 (06:17 +0000)
src/HYDROCurveCreator/CurveCreator_Curve.cxx

index a07b1316bc2513426da5b0d1869e00d70e07daf5..8572a116d99433a57ca2b838d3651ada532f8224 100644 (file)
@@ -874,7 +874,8 @@ bool CurveCreator_Curve::setPointInternal( const CurveCreator::SectionsMap &theS
       for( ; aPntIt != aSectionPoints.end(); aPntIt++ ){
         int anIPnt = (*aPntIt)->myID;
         CurveCreator::Coordinates aCoords = (*aPntIt)->myCoords;
-        aSection->myPoints.assign(aCoords.begin(), aCoords.end());
+        for ( int i = 0; i < myDimension; i++)
+          aSection->myPoints.at(toICoord(anIPnt) + i) = aCoords[i];
       }
       res = true;
     }
@@ -905,7 +906,10 @@ bool CurveCreator_Curve::setPoint( const int theISection,
   aPoints.push_back( aPosPoint );
   aSectionsMap[theISection] = aPoints;
 
+  int aSize1 = getNbPoints( theISection );
   res = setPointInternal( aSectionsMap );
+  int aSize2 = getNbPoints( theISection );
+
   finishOperation();
 
   return res;