From: spo Date: Tue, 17 Nov 2015 09:07:44 +0000 (+0300) Subject: Set status after set result in ParameterPlugin feature. X-Git-Tag: V_2.0.0~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b8814ffbc9db51002a5eb441768678c01933f76;p=modules%2Fshaper.git Set status after set result in ParameterPlugin feature. --- diff --git a/src/ParametersPlugin/ParametersPlugin_Parameter.cpp b/src/ParametersPlugin/ParametersPlugin_Parameter.cpp index 2b5ee41a5..712533bbc 100644 --- a/src/ParametersPlugin/ParametersPlugin_Parameter.cpp +++ b/src/ParametersPlugin/ParametersPlugin_Parameter.cpp @@ -79,13 +79,13 @@ void ParametersPlugin_Parameter::updateExpression() return; } - setError("", false); - data()->execState(ModelAPI_StateDone); - ResultParameterPtr aParam = document()->createParameter(data()); AttributeDoublePtr aValueAttribute = aParam->data()->real(ModelAPI_ResultParameter::VALUE()); aValueAttribute->setValue(aValue); setResult(aParam); + + setError("", false); + data()->execState(ModelAPI_StateDone); } void ParametersPlugin_Parameter::execute()