Salome HOME
PAL6825
[modules/smesh.git] / src / SMESHDS / SMESHDS_Group.cxx
index ecd6efb8ce998c2fc5c2048e21bb56e7bfd1a2d5..9c7dfa4a96e9ae2984f0e6d9dda4cc5dbee5aacd 100644 (file)
@@ -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();
 }
 
 // =====================