]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix Undo/Redo of removing of middle point.
authorakl <akl@opencascade.com>
Wed, 20 Nov 2013 06:58:21 +0000 (06:58 +0000)
committerakl <akl@opencascade.com>
Wed, 20 Nov 2013 06:58:21 +0000 (06:58 +0000)
src/HYDROCurveCreator/CurveCreator_Diff.cxx

index 3cd5ac3bfed81af17580dac76d0ff84b200727a0..1e21a31c6cd1c3cdda2fdf5cc0fe65a0704274f0 100644 (file)
@@ -211,9 +211,8 @@ bool CurveCreator_Diff::init(const CurveCreator_Curve *theCurve,
                     theCurve->getPoints(theIntParam1);
             CurveCreator::Coordinates::const_iterator anIterBegin =
                 aPoints.begin() + (aDim*theIntParam2);
-            CurveCreator::Coordinates::const_iterator anIterEnd;
-
-            anIterEnd = aPoints.end();
+            CurveCreator::Coordinates::const_iterator anIterEnd = 
+              anIterBegin + aDim;
 
             CurveCreator::Coordinates aPointsToAdd;