From: spo Date: Fri, 10 Jul 2015 06:42:38 +0000 (+0300) Subject: Issue #588 - Renaming a parameter used in an expression X-Git-Tag: V_1.3.0~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0af3fa5eaba47f1bac527a62fe1acb2c8f3edb05;p=modules%2Fshaper.git Issue #588 - Renaming a parameter used in an expression --- diff --git a/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp b/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp index 3e53238b8..e381b6f00 100644 --- a/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp +++ b/src/ParametersPlugin/ParametersPlugin_EvalListener.cpp @@ -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(