X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHDS%2FSMESHDS_Group.cxx;h=6e30e008bbed413e832c4a03e955b62f00ab1a10;hp=3f2fa3c13acff52f5e031227e3f142c835f8481c;hb=bb40f7c1d3542da1ff59b6c3bface0574789dded;hpb=6bac08c1a81f34d3f21c550bd92f83654b2546a5 diff --git a/src/SMESHDS/SMESHDS_Group.cxx b/src/SMESHDS/SMESHDS_Group.cxx index 3f2fa3c13..6e30e008b 100644 --- a/src/SMESHDS/SMESHDS_Group.cxx +++ b/src/SMESHDS/SMESHDS_Group.cxx @@ -98,7 +98,17 @@ bool SMESHDS_Group::Contains (const SMDS_MeshElement* elem) bool SMESHDS_Group::Add (const int theID) { - const SMDS_MeshElement* aElem = findInMesh (theID); + return Add( findInMesh( theID )); +} + +//============================================================================= +/*! + * + */ +//============================================================================= + +bool SMESHDS_Group::Add (const SMDS_MeshElement* aElem ) +{ if (!aElem || myGroup.Contains(aElem)) return false;