From: akl Date: Thu, 21 Nov 2013 17:48:08 +0000 (+0000) Subject: Move 'updateUndoRedo()' to 'finishCurveModification()' to call it after every X-Git-Tag: BR_hydro_v_0_3_1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9a396c1270846901efdd4477c74e986638425a0d;p=modules%2Fhydro.git Move 'updateUndoRedo()' to 'finishCurveModification()' to call it after every operation. --- diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.cxx b/src/HYDROCurveCreator/CurveCreator_Widget.cxx index fa6ae3d1..6c334395 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Widget.cxx @@ -737,7 +737,6 @@ void CurveCreator_Widget::onUndo() myCurve->undo(); finishCurveModification(); mySectionView->reset(); - updateUndoRedo(); } void CurveCreator_Widget::onRedo() @@ -749,7 +748,6 @@ void CurveCreator_Widget::onRedo() myCurve->redo(); finishCurveModification(); mySectionView->reset(); - updateUndoRedo(); } void CurveCreator_Widget::updateUndoRedo() @@ -1097,7 +1095,6 @@ void CurveCreator_Widget::insertPointToSelectedSegment( const int theX, finishCurveModification( aSelPoints ); setSelectedPonts(); - updateUndoRedo(); } void CurveCreator_Widget::moveSelectedPoints( const int theXPosition, @@ -1406,6 +1403,7 @@ void CurveCreator_Widget::finishCurveModification( if ( getActionMode() == ModificationMode ) setLocalPointContext( true ); setSelectedPonts( thePoints ); + updateUndoRedo(); } /**