From: nds Date: Wed, 20 Nov 2013 09:08:56 +0000 (+0000) Subject: Remove action should be enabled if the modification mode is activated and there are... X-Git-Tag: BR_hydro_v_0_3_1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8edf4fc66ea7a86eba33f7d084a598e6ceb6ca90;p=modules%2Fhydro.git Remove action should be enabled if the modification mode is activated and there are no selected Section item. --- 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 );