From: akl Date: Wed, 20 Nov 2013 06:58:21 +0000 (+0000) Subject: Fix Undo/Redo of removing of middle point. X-Git-Tag: BR_hydro_v_0_3_1~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cab84b2968166d7b7b8673765307403b1f571a5b;p=modules%2Fhydro.git Fix Undo/Redo of removing of middle point. --- 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;