Salome HOME
Fillet multiselection
[modules/shaper.git] / src / ParametersPlugin / ParametersPlugin_Parameter.cpp
index 961182a7138aa7218aa957f43921d236932fea24..803ea9e43983c4b7403c967b18120636cb6bb364 100644 (file)
@@ -107,7 +107,7 @@ double ParametersPlugin_Parameter::evaluate(const std::string& theExpression, st
     // Currently there is no way to get parent document, so we get PartSet for all.
     DocumentPtr aDocument = document();
     if (data()->name() == aVariableName) {
-      if (aDocument = ModelAPI_Session::get()->moduleDocument())
+      if (aDocument == ModelAPI_Session::get()->moduleDocument())
         continue;
       aDocument = ModelAPI_Session::get()->moduleDocument();
     }