From: mpv Date: Fri, 8 May 2015 06:54:12 +0000 (+0300) Subject: Set reference to correct label: to avoid recursion of sub-label with tag "1" X-Git-Tag: V_1.2.0~110^2~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5ad64d84635e116b2c012936e37cbf1cc3664c17;p=modules%2Fshaper.git Set reference to correct label: to avoid recursion of sub-label with tag "1" --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 3b82ea108..d6f9f869e 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -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()) {