X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_SelectionOp.cxx;h=1111be4075be7376fda3e9729dc30054c823391a;hp=b43fcb120c73b3b9e38753bb49064c0bf3e9857d;hb=c819d8fdd36530ce3666561056a3e8795eaf35c9;hpb=2f652b378401af2eefab3a17c9ea97b6cfc78abd 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() ); + } } } }