]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
In method GetAllAttributes added a check to avoid returning of AttributeReference
authorsrn <srn@opencascade.com>
Thu, 14 Apr 2005 05:51:21 +0000 (05:51 +0000)
committersrn <srn@opencascade.com>
Thu, 14 Apr 2005 05:51:21 +0000 (05:51 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx

index b60fce5a038b41d892baf350e396d433d19f568c..9ca0d5d582f7b61e65b81cdd21fdadcb33eb737d 100644 (file)
@@ -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);
     }
   }