]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for improvement 0017606 (EDF 168: Is it possible to customize the tooltip of...
authormzn <mzn@opencascade.com>
Thu, 25 Dec 2008 14:55:30 +0000 (14:55 +0000)
committermzn <mzn@opencascade.com>
Thu, 25 Dec 2008 14:55:30 +0000 (14:55 +0000)
src/GEOM_I/GEOM_Gen_i.cc

index 0773552c592727332997502edd4fc76a8ec492ec..2c7fd0b2c8681ebd98c8a3c8dfaf8f102376c4e1 100644 (file)
@@ -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);