From 6c59bc2dc53579dd056e460f0aae404e60cdb3ae Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 25 Dec 2008 14:55:30 +0000 Subject: [PATCH] Fix for improvement 0017606 (EDF 168: Is it possible to customize the tooltip of the objects in the browser?). Addition concerninig info for references. --- src/GEOM_I/GEOM_Gen_i.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 0773552c5..2c7fd0b2c 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -1326,6 +1326,10 @@ char* GEOM_Gen_i::getObjectInfo(CORBA::Long studyId, const char* entry) SALOMEDS::StudyManager_var aStudyManager = SALOMEDS::StudyManager::_narrow( aSMObject ); SALOMEDS::Study_var aStudy = aStudyManager->GetStudyByID( studyId ); SALOMEDS::SObject_var aSObj = aStudy->FindObjectID( entry ); + SALOMEDS::SObject_var aResultSObj; + if (aSObj->ReferencedObject(aResultSObj)) + aSObj = aResultSObj; + SALOMEDS::GenericAttribute_var anAttr; if (!aSObj->_is_nil() && aSObj->FindAttribute(anAttr, "AttributeIOR")) { SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr); -- 2.39.2