From 5ad64d84635e116b2c012936e37cbf1cc3664c17 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 8 May 2015 09:54:12 +0300 Subject: [PATCH] Set reference to correct label: to avoid recursion of sub-label with tag "1" --- src/Model/Model_AttributeSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.2