Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/visu.git] / src / VISU_I / VISU_StreamLines_i.cc
index 85fd5da7c75963ed0e72767eb4ad8e53533ab44d..66a2305f10f24f4f7990c73adc19ff70c849f0da 100644 (file)
@@ -29,6 +29,7 @@
 #include "VISU_StreamLines_i.hh"
 #include "VISU_Actor.h"
 
+#include <vtkDataSetMapper.h>
 #include <vtkAppendFilter.h>
 
 using namespace VISU;
@@ -52,10 +53,10 @@ int VISU::StreamLines_i::IsPossible(Result_i* theResult, const char* theMeshName
     bool aResult = VISU_StreamLinesPL::IsPossible(anOutput);
     MESSAGE("StreamLines_i::IsPossible - aResult = "<<aResult);
     return aResult;
-  }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;
 }
@@ -147,7 +148,7 @@ VISU::StreamLines_i::SetParams(CORBA::Double theIntStep,
   VISU::Prs3d_i* aPrs3di = NULL;
   vtkPointSet* aSource = NULL;
   if(!thePrs3d->_is_nil())
-    if(aPrs3di = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(thePrs3d).in())){
+    if((aPrs3di = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(thePrs3d).in()))){
       for(int i = myAppendFilter->GetNumberOfInputs()-1; i >= 0; i--)
        myAppendFilter->RemoveInput(myAppendFilter->GetInput(i));
       myAppendFilter->AddInput(aPrs3di->GetPL()->GetMapper()->GetInput());