From c819d8fdd36530ce3666561056a3e8795eaf35c9 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 11 Nov 2005 11:58:16 +0000 Subject: [PATCH] PAL10125 - references isn't selected in mesh creation dialog --- src/SMESHGUI/SMESHGUI_SelectionOp.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SMESHGUI/SMESHGUI_SelectionOp.cxx b/src/SMESHGUI/SMESHGUI_SelectionOp.cxx index b43fcb120..1111be407 100644 --- a/src/SMESHGUI/SMESHGUI_SelectionOp.cxx +++ b/src/SMESHGUI/SMESHGUI_SelectionOp.cxx @@ -420,7 +420,13 @@ void SMESHGUI_SelectionOp::selected( QStringList& names, QString id = anIt.Value()->getEntry(); ids.append( id ); types.append( typeById( id, Object ) ); - names.append( anIt.Value()->getName() ); + SalomeApp_Study* _study = dynamic_cast( study() ); + if( _study ) + { + _PTR(SObject) obj = _study->studyDS()->FindObjectID( anIt.Value()->getEntry() ); + if( obj ) + names.append( obj->GetName().c_str() ); + } } } } -- 2.39.2