From cab84b2968166d7b7b8673765307403b1f571a5b Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 20 Nov 2013 06:58:21 +0000 Subject: [PATCH] Fix Undo/Redo of removing of middle point. --- src/HYDROCurveCreator/CurveCreator_Diff.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.2