Salome HOME
Replace Display/Erase by setDisplayed
[modules/shaper.git] / src / Model / Model_AttributeSelection.cpp
index 3b82ea108368786a4972bb1198d89670e01101be..d6f9f869eb5fdf184b293bcd64e754a05bf03006 100644 (file)
@@ -98,7 +98,7 @@ void Model_AttributeSelection::setValue(const ResultPtr& theContext,
     // to keep the reference attribute label
     TDF_Label aRefLab = myRef.myRef->Label();
     aSelLab.ForgetAllAttributes(true);
-    myRef.myRef = TDF_Reference::Set(aSelLab, aSelLab);
+    myRef.myRef = TDF_Reference::Set(aSelLab.Father(), aSelLab.Father());
     return;
   }
   if (theContext->groupName() == ModelAPI_ResultBody::group()) {