X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FModel%2FModel_AttributeReference.cpp;h=a5540e7415845b1791a2860e8b40cfe6a8d30527;hb=919e6d70d8e318b7451524cc658a2185fd7d2bb8;hp=9cfd4a91c3ef72ee3df11bdd76f6deadcb5e650f;hpb=8b714c0bc3795b0a18977d2fdefbe741a8ef10c0;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeReference.cpp b/src/Model/Model_AttributeReference.cpp index 9cfd4a91c..a5540e741 100644 --- a/src/Model/Model_AttributeReference.cpp +++ b/src/Model/Model_AttributeReference.cpp @@ -18,7 +18,7 @@ void Model_AttributeReference::setValue(ObjectPtr theObject) if (myRef.IsNull()) { boost::shared_ptr aMyData = boost::dynamic_pointer_cast(owner()->data()); - myRef = TDF_Reference::Set(aMyData->label(), aData->label()); + myRef = TDF_Reference::Set(aMyData->label(), aData->label().Father()); } else { myRef->Set(aData->label()); }