Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file

This commit is contained in:
vsr 2010-03-22 15:08:53 +00:00
parent 9e0ab432cc
commit e9aead38a5

View File

@ -165,11 +165,12 @@ SMESH::ElementType SMESH_GroupBase_i::GetType()
SMDSAbs_ElementType aSMDSType = aGroupDS->GetType();
SMESH::ElementType aType;
switch (aSMDSType) {
case SMDSAbs_Node: aType = SMESH::NODE; break;
case SMDSAbs_Edge: aType = SMESH::EDGE; break;
case SMDSAbs_Face: aType = SMESH::FACE; break;
case SMDSAbs_Volume: aType = SMESH::VOLUME; break;
default: aType = SMESH::ALL; break;
case SMDSAbs_Node: aType = SMESH::NODE; break;
case SMDSAbs_Edge: aType = SMESH::EDGE; break;
case SMDSAbs_Face: aType = SMESH::FACE; break;
case SMDSAbs_Volume: aType = SMESH::VOLUME; break;
case SMDSAbs_0DElement: aType = SMESH::ELEM0D; break;
default: aType = SMESH::ALL; break;
}
return aType;
}