From: vsr Date: Mon, 22 Mar 2010 15:08:53 +0000 (+0000) Subject: Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached... X-Git-Tag: V5_1_4a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9aead38a5bfd7949cbfc2b153e0e380d991b985;p=modules%2Fsmesh.git Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file --- diff --git a/src/SMESH_I/SMESH_Group_i.cxx b/src/SMESH_I/SMESH_Group_i.cxx index 7502c5409..1c7ff6a51 100644 --- a/src/SMESH_I/SMESH_Group_i.cxx +++ b/src/SMESH_I/SMESH_Group_i.cxx @@ -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; }