From 8655e901dc7128a9bd6aa38ec94401a13cde0cde Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 14 Apr 2005 05:51:21 +0000 Subject: [PATCH] In method GetAllAttributes added a check to avoid returning of AttributeReference --- src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx index b60fce5a0..9ca0d5d58 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx @@ -116,7 +116,7 @@ Handle(TColStd_HSequenceOfTransient) SALOMEDSImpl_SObject::GetAllAttributes() if (NumAttr != 0) { for(TDF_AttributeIterator iter(_lab);iter.More();iter.Next()) { anAttr = Handle(SALOMEDSImpl_GenericAttribute)::DownCast(iter.Value()); - if(!anAttr.IsNull()) + if(!anAttr.IsNull() && anAttr->Type() != "AttributeReference") SeqOfAttr->Append(anAttr); } } -- 2.39.2