From: nds Date: Tue, 19 Nov 2013 14:53:06 +0000 (+0000) Subject: Bug with remove multi-selected points. X-Git-Tag: BR_hydro_v_0_3_1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81cd2d2b5edf4082eec2550fcc20904e5c156eda;p=modules%2Fhydro.git Bug with remove multi-selected points. --- 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 );