]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug with remove multi-selected points.
authornds <nds@opencascade.com>
Tue, 19 Nov 2013 14:53:06 +0000 (14:53 +0000)
committernds <nds@opencascade.com>
Tue, 19 Nov 2013 14:53:06 +0000 (14:53 +0000)
src/HYDROCurveCreator/CurveCreator_Widget.cxx

index fa6217e9d89496c13ace7edaf80c27459c07e65e..ec33d24990a920e03bb8affe7e50858369d74676 100644 (file)
@@ -1017,15 +1017,15 @@ void CurveCreator_Widget::removePoint()
 {
   int aSectionId = 0;
   QList<int> aPoints;
-  qSort( aPoints );
   getSelectedPonts( aSectionId, aPoints );
-
   if ( aPoints.size() == 0 )
     return;
 
   QList<int> 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 );