From 07080429d9c92480c944c20ac25de8a9620efe5d Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 28 Feb 2007 08:44:17 +0000 Subject: [PATCH] Improvement NPAL14732: display own values for the Reference objects in the Object Browser --- src/SalomeApp/SalomeApp_DataObject.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_DataObject.cxx b/src/SalomeApp/SalomeApp_DataObject.cxx index 5eb3c97a9..dd9ff8960 100644 --- a/src/SalomeApp/SalomeApp_DataObject.cxx +++ b/src/SalomeApp/SalomeApp_DataObject.cxx @@ -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() ); -- 2.39.2