Salome HOME
Using stl container instead of Qt.
[modules/hydro.git] / 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;