From 81cd2d2b5edf4082eec2550fcc20904e5c156eda Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 19 Nov 2013 14:53:06 +0000 Subject: [PATCH] Bug with remove multi-selected points. --- src/HYDROCurveCreator/CurveCreator_Widget.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.cxx b/src/HYDROCurveCreator/CurveCreator_Widget.cxx index fa6217e9..ec33d249 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Widget.cxx @@ -1017,15 +1017,15 @@ void CurveCreator_Widget::removePoint() { int aSectionId = 0; QList aPoints; - qSort( aPoints ); getSelectedPonts( aSectionId, aPoints ); - if ( aPoints.size() == 0 ) return; QList aSelPoints; startCurveModification( aSelPoints, false ); + // the points should be removed in a decreased order + qSort( aPoints ); for( int i = aPoints.size()-1; i >= 0; i-- ){ int aPntIndx = aPoints[i]; myCurve->removePoint( aSectionId, aPntIndx ); -- 2.39.2