From: srn Date: Thu, 14 Apr 2005 05:51:21 +0000 (+0000) Subject: In method GetAllAttributes added a check to avoid returning of AttributeReference X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8655e901dc7128a9bd6aa38ec94401a13cde0cde;p=modules%2Fkernel.git In method GetAllAttributes added a check to avoid returning of AttributeReference --- 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); } }