]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Set status after set result in ParameterPlugin feature.
authorspo <sergey.pokhodenko@opencascade.com>
Tue, 17 Nov 2015 09:07:44 +0000 (12:07 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Tue, 17 Nov 2015 09:08:38 +0000 (12:08 +0300)
src/ParametersPlugin/ParametersPlugin_Parameter.cpp

index 2b5ee41a5b1b3eda3afacb0c9ada50d1e898c6ef..712533bbcc975aa8534292185e7b3eb8f5a3bd87 100644 (file)
@@ -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()