Salome HOME
Additional fix for the #2659 optimization
[modules/shaper.git] / src / Model / Model_AttributeSelectionList.cpp
index c231bfd0e2ef088a356ed57a4b5628b3223d8366..9fb4124075eac962de1a6d8b15a7770541194003 100644 (file)
@@ -332,11 +332,11 @@ std::shared_ptr<ModelAPI_AttributeSelection>
   // (if attribute is deleted and created, the abort updates attriute and makes the Attr invalid)
   std::shared_ptr<Model_AttributeSelection> aNewAttr =
     std::shared_ptr<Model_AttributeSelection>(new Model_AttributeSelection(aLabel));
+  aNewAttr->setID(id());
   if (owner()) {
     aNewAttr->setObject(owner());
     aNewAttr->setParent(this);
   }
-  aNewAttr->setID(id());
   return aNewAttr;
 }