]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Improvement NPAL14732: display own values for the Reference objects in the Object...
authorvsr <vsr@opencascade.com>
Wed, 28 Feb 2007 08:44:17 +0000 (08:44 +0000)
committervsr <vsr@opencascade.com>
Wed, 28 Feb 2007 08:44:17 +0000 (08:44 +0000)
src/SalomeApp/SalomeApp_DataObject.cxx

index 5eb3c97a9050bf0a3aa0ddd7b52ba6765899d726..dd9ff896078cce00674d647eb20eadf4a3ef6c41 100644 (file)
@@ -134,7 +134,9 @@ QString SalomeApp_DataObject::text( const int id ) const
 #else
     if ( componentObject() != (SUIT_DataObject*)this )
 #endif
-      txt = value( referencedObject() );
+      txt = value( object() );
+      if ( txt.isEmpty() )
+       txt = value( referencedObject() );
     break;
   case CT_Entry:
     txt = entry( object() );