From 0af3fa5eaba47f1bac527a62fe1acb2c8f3edb05 Mon Sep 17 00:00:00 2001 From: spo Date: Fri, 10 Jul 2015 09:42:38 +0300 Subject: [PATCH] Issue #588 - Renaming a parameter used in an expression --- src/ParametersPlugin/ParametersPlugin_EvalListener.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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( -- 2.39.2