]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Move 'updateUndoRedo()' to 'finishCurveModification()' to call it after every
authorakl <akl@opencascade.com>
Thu, 21 Nov 2013 17:48:08 +0000 (17:48 +0000)
committerakl <akl@opencascade.com>
Thu, 21 Nov 2013 17:48:08 +0000 (17:48 +0000)
 operation.

src/HYDROCurveCreator/CurveCreator_Widget.cxx

index fa6ae3d15f4abf17413d12524e4b19425cea7b74..6c3343953a1e7845e43b08dfbaac3c69a06228cc 100644 (file)
@@ -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();
 }
 
 /**