]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Set reference to correct label: to avoid recursion of sub-label with tag "1"
authormpv <mpv@opencascade.com>
Fri, 8 May 2015 06:54:12 +0000 (09:54 +0300)
committermpv <mpv@opencascade.com>
Fri, 8 May 2015 06:54:12 +0000 (09:54 +0300)
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()) {