_PTR(GenericAttribute) anAttr;
_PTR(AttributeString) aComment;
+ _PTR(SObject) aRefSObject;
+ if (aSObject->ReferencedObject(aRefSObject)) {
+ // It can be a reference on curve, published under a container. IPAL 20317
+ VISU::TObjectInfo aRefObjectInfo = GetObjectByEntry(GetAppStudy(theModule), aRefSObject->GetID());
+ VISU::Base_i* aRefBase = aRefObjectInfo.myBase;
+ if(aRefBase && aRefBase->GetType() == VISU::TCURVE)
+ return true;
+ }
+
bool isUnderVISU = false;
_PTR(SObject) aFatherSObject = aSObject->GetFather();
if (aFatherSObject->FindAttribute(anAttr, "AttributeName")) {