Salome HOME
IMP: HexoticPLUGIN/Size Maps: Added some warnings to avoid 0 value of the local size...
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_Hypothesis.cxx
index 3548bc6df6b94ba548ae94ce6cfd4f8d7e2711b7..0658ec03c6c3719a51ce5414a233941b691fd65b 100644 (file)
@@ -148,6 +148,10 @@ void HexoticPlugin_Hypothesis::SetHexoticMaxMemory(int theVal) {
 bool HexoticPlugin_Hypothesis::AddSizeMap(std::string theEntry, double theSize) {
   THexoticSizeMaps::iterator it;
   it=_sizeMaps.find(theEntry);
+  
+  if(theSize <= 0)
+    return false;
+  
   if( it == _sizeMaps.end() ) // If no size map is defined on the given object
   {
     _sizeMaps[theEntry] = theSize;