Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PAL9963
[modules/smesh.git]
/
src
/
SMESHGUI
/
SMESHGUI_Selection.cxx
diff --git
a/src/SMESHGUI/SMESHGUI_Selection.cxx
b/src/SMESHGUI/SMESHGUI_Selection.cxx
index ee4b1e60dcd429085ba9cf9400c3daac51ca22c0..b6a899e342cb19693267f51ecdbda88bbae2fb1f 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_Selection.cxx
+++ b/
src/SMESHGUI/SMESHGUI_Selection.cxx
@@
-350,6
+350,9
@@
int SMESHGUI_Selection::type( const QString& entry, _PTR(Study) study )
if( objComponent->ComponentDataType()!="SMESH" )
return -1;
if( objComponent->ComponentDataType()!="SMESH" )
return -1;
+ if( objComponent->GetIOR()==obj->GetIOR() )
+ return COMPONENT;
+
int aLevel = obj->Depth() - objComponent->Depth(),
aFTag = objFather->Tag(),
anOTag = obj->Tag(),
int aLevel = obj->Depth() - objComponent->Depth(),
aFTag = objFather->Tag(),
anOTag = obj->Tag(),
@@
-431,6
+434,8
@@
QString SMESHGUI_Selection::typeName( const int t )
return "Mesh compound";
case GROUP:
return "Group";
return "Mesh compound";
case GROUP:
return "Group";
+ case COMPONENT:
+ return "Component";
default:
return "Unknown";
}
default:
return "Unknown";
}