mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-01 04:10:34 +05:00
Fix for improvement 0017606 (EDF 168: Is it possible to customize the tooltip of the objects in the browser?). Addition concerninig info for references.
This commit is contained in:
parent
32059ef998
commit
6c59bc2dc5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user