From 9a396c1270846901efdd4477c74e986638425a0d Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 21 Nov 2013 17:48:08 +0000 Subject: [PATCH] Move 'updateUndoRedo()' to 'finishCurveModification()' to call it after every operation. --- src/HYDROCurveCreator/CurveCreator_Widget.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } /** -- 2.39.2