Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Recover.cpp
index 6a99ac3bbc942b525c10cbd427f3e76dcdaa5ef9..b9497c0f1f1d40d62f2c293e1a949ee2e2abad21 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -37,12 +37,12 @@ FeaturesAPI_Recover::FeaturesAPI_Recover(const std::shared_ptr<ModelAPI_Feature>
   const bool theRecoverCompound)
 : ModelHighAPI_Interface(theFeature)
 {
-  if(initialize()) {
+  if (initialize()) {
     std::string aMethod = theRecoverCompound ? FeaturesPlugin_Recover::METHOD_COMPOUND()
                                              : FeaturesPlugin_Recover::METHOD_DEFAULT();
     fillAttribute(aMethod, theFeature->string(FeaturesPlugin_Recover::METHOD()));
 
-    setBaseFeature(theBaseFeature);
+    fillAttribute(theBaseFeature.feature(), mybaseFeature);
     setRecoveredList(theRecoveredList);
   }
 }