X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_Diff.cxx;h=1e21a31c6cd1c3cdda2fdf5cc0fe65a0704274f0;hb=1f844eb06506171b54541cc0caf1a0c237fe0dbf;hp=3cd5ac3bfed81af17580dac76d0ff84b200727a0;hpb=254aba54a085eac64aa4ec13f1d46beac722a252;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_Diff.cxx b/src/HYDROCurveCreator/CurveCreator_Diff.cxx index 3cd5ac3b..1e21a31c 100644 --- a/src/HYDROCurveCreator/CurveCreator_Diff.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Diff.cxx @@ -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;