]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMDS/SMDS_MeshIDFactory.cxx
Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/smesh.git] / src / SMDS / SMDS_MeshIDFactory.cxx
index a68ae5ad0325a37bfe530818c2349cf123f77c17..db5df4222ce3d2f3fd5661f4ee9b5d621b8e0d6b 100644 (file)
@@ -54,5 +54,5 @@ int SMDS_MeshIDFactory::GetFreeID()
 //=======================================================================
 void SMDS_MeshIDFactory::ReleaseID(const int ID)
 {
-       if (ID < myMaxID) myPoolOfID.push(ID);
+  if (ID > 0 && ID < myMaxID) myPoolOfID.push(ID);
 }