]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To improve IsPossible function
authorapo <apo@opencascade.com>
Mon, 29 Aug 2005 08:30:29 +0000 (08:30 +0000)
committerapo <apo@opencascade.com>
Mon, 29 Aug 2005 08:30:29 +0000 (08:30 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index e1207625959ef6f060af235611e06b7366c77c2d..9271eabdf3a92e957874d38256abdf77df3a7838 100644 (file)
@@ -43,7 +43,10 @@ VISU::GaussPoints_i
             const char* theFieldName, int theIteration, int isMemoryCheck)
 {
   try{
-    return VISU::ScalarMap_i::IsPossible(theResult,theMeshName,theEntity,theFieldName,theIteration,isMemoryCheck);
+    if(theEntity != VISU::NODE)
+      return VISU::ScalarMap_i::IsPossible(theResult,theMeshName,theEntity,theFieldName,theIteration,isMemoryCheck);
+    else
+      return false;
   }catch(std::exception& exc){
     INFOS("Follow exception was occured :\n"<<exc.what());
   }catch(...){