X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHDS%2FSMESHDS_Group.cxx;h=9c7dfa4a96e9ae2984f0e6d9dda4cc5dbee5aacd;hp=ecd6efb8ce998c2fc5c2048e21bb56e7bfd1a2d5;hb=ab6b16e673b44c983e261331181bcec90be2e920;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/SMESHDS/SMESHDS_Group.cxx b/src/SMESHDS/SMESHDS_Group.cxx index ecd6efb8c..9c7dfa4a9 100644 --- a/src/SMESHDS/SMESHDS_Group.cxx +++ b/src/SMESHDS/SMESHDS_Group.cxx @@ -93,6 +93,7 @@ bool SMESHDS_Group::Add (const int theID) SetType( aElem->GetType() ); myGroup.Add (aElem); + resetIterator(); return true; } @@ -108,6 +109,7 @@ bool SMESHDS_Group::Remove (const int theID) if (!aElem || !myGroup.Contains(aElem)) return false; myGroup.Remove (aElem); + resetIterator(); return true; } @@ -119,6 +121,7 @@ bool SMESHDS_Group::Remove (const int theID) void SMESHDS_Group::Clear() { myGroup.Clear(); + resetIterator(); } // =====================