Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2f652b3
)
PAL10125 - references isn't selected in mesh creation dialog
author
asl
<asl@opencascade.com>
Fri, 11 Nov 2005 11:58:16 +0000
(11:58 +0000)
committer
asl
<asl@opencascade.com>
Fri, 11 Nov 2005 11:58:16 +0000
(11:58 +0000)
src/SMESHGUI/SMESHGUI_SelectionOp.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_SelectionOp.cxx
b/src/SMESHGUI/SMESHGUI_SelectionOp.cxx
index b43fcb120c73b3b9e38753bb49064c0bf3e9857d..1111be4075be7376fda3e9729dc30054c823391a 100644
(file)
--- 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 ) );
QString id = anIt.Value()->getEntry();
ids.append( id );
types.append( typeById( id, Object ) );
- names.append( anIt.Value()->getName() );
+ SalomeApp_Study* _study = dynamic_cast<SalomeApp_Study*>( study() );
+ if( _study )
+ {
+ _PTR(SObject) obj = _study->studyDS()->FindObjectID( anIt.Value()->getEntry() );
+ if( obj )
+ names.append( obj->GetName().c_str() );
+ }
}
}
}
}
}
}