Salome HOME
[Bug PAL7853] PAL-MESH-004 regress: Problem with presentation groups of Nodes in...
[modules/smesh.git] / src / SMDS / SMDS_MeshIDFactory.cxx
index a68ae5ad0325a37bfe530818c2349cf123f77c17..96314592de10318b74ff108f3e67fdae9a8ca67a 100644 (file)
@@ -28,6 +28,8 @@
 
 #include "SMDS_MeshIDFactory.hxx"
 
+using namespace std;
+
 //=======================================================================
 //function : SMDS_MeshIDFactory
 //purpose  : 
@@ -54,5 +56,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);
 }