]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #588 - Renaming a parameter used in an expression
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 10 Jul 2015 06:42:38 +0000 (09:42 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 10 Jul 2015 06:43:32 +0000 (09:43 +0300)
src/ParametersPlugin/ParametersPlugin_EvalListener.cpp

index 3e53238b8bd0dae832af25cb66b5126c564e62c9..e381b6f0027677558730dc7213ff9f789999646d 100644 (file)
@@ -202,7 +202,11 @@ void ParametersPlugin_EvalListener::renameInParameter(
   anExpressionString = renameInPythonExpression(anExpressionString,
                                                 theOldName,
                                                 theNewName);
+  // Issue #588. No need for reevaluating expression. 
+  // Moreover, current history may not contain necessary parameters.
+  anExpressionAttribute->owner()->data()->blockSendAttributeUpdated(true);
   anExpressionAttribute->setValue(anExpressionString);
+  anExpressionAttribute->owner()->data()->blockSendAttributeUpdated(false);
 }
 
 void ParametersPlugin_EvalListener::renameInAttribute(