Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/visu.git] / src / VISU_I / VISU_DeformedShape_i.cc
index d77a80fdf386bdd60e39946319b6c4e9637ff15f..8333217fd7fddded443a1e955f752017e586718c 100644 (file)
@@ -29,6 +29,8 @@
 #include "VISU_DeformedShape_i.hh"
 #include "VISU_ScalarMapAct.h"
 
+#include <vtkDataSetMapper.h>
+
 using namespace VISU;
 using namespace std;
 
@@ -47,10 +49,10 @@ int VISU::DeformedShape_i::IsPossible(Result_i* theResult, const char* theMeshNa
     if(!VISU::ScalarMap_i::IsPossible(theResult,theMeshName,theEntity,theFieldName,theIteration,isMemoryCheck)) return 0;
     const VISU::TField& aField = theResult->GetInput()->GetField(theMeshName,(VISU::TEntity)theEntity,theFieldName);
     return aField.myNbComp > 1;
-  }catch(std::runtime_error& exc){
-    INFOS("Follow exception was accured :\n"<<exc.what());
+  }catch(std::exception& exc){
+    INFOS("Follow exception was occured :\n"<<exc.what());
   }catch(...){
-    INFOS("Unknown exception was accured!");
+    INFOS("Unknown exception was occured!");
   }
   return 0;
 }