From 8edf4fc66ea7a86eba33f7d084a598e6ceb6ca90 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 20 Nov 2013 09:08:56 +0000 Subject: [PATCH] Remove action should be enabled if the modification mode is activated and there are no selected Section item. --- src/HYDROCurveCreator/CurveCreator_Widget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.cxx b/src/HYDROCurveCreator/CurveCreator_Widget.cxx index 2c775e64..bfd8c809 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Widget.cxx @@ -1003,7 +1003,7 @@ void CurveCreator_Widget::removePoint() int aSectionId = anIt.key(); QList aSectionPoints = anIt.value(); - qSort( aPoints ); + qSort( aSectionPoints ); for( int i = aSectionPoints.size()-1; i >= 0; i-- ){ int aPntIndx = aSectionPoints[i]; myCurve->removePoint( aSectionId, aPntIndx ); -- 2.39.2