]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To avoid run-time error messages
authorapo <apo@opencascade.com>
Tue, 29 Nov 2005 15:11:45 +0000 (15:11 +0000)
committerapo <apo@opencascade.com>
Tue, 29 Nov 2005 15:11:45 +0000 (15:11 +0000)
src/PIPELINE/VISU_SphereWidget.cxx
src/VVTK/VVTK_Recorder.cxx

index 3ecbf95b70d29f876e1a8c3e0a2afd2bd206208f..76608c7c10c3f6a9e58d6997ff30b370f831bdaf 100755 (executable)
@@ -90,8 +90,6 @@ VISU_SphereWidget::VISU_SphereWidget(){
 //====================================================================
 VISU_SphereWidget::~VISU_SphereWidget()
 {
-  this->SetEnabled(0);
-  //
   mySphereActor->Delete();
   mySphereMapper->Delete();
   mySphereSource->Delete();
index ca2e1aa55a0f42a913c5f78a8feb29ad94923715..eb9dd83a0fb9e337f3a1f19aba612b2396997002 100755 (executable)
@@ -100,7 +100,10 @@ void VVTK_Recorder::CheckExistAVIMaker()
   int iErr, iES;\r
   //\r
   myErrorStatus=0;\r
-  iErr=system(myNameAVIMaker);\r
+  std::string anAVIMakeCheck("which ");\r
+  anAVIMakeCheck += myNameAVIMaker;\r
+  anAVIMakeCheck += " >& /dev/null";\r
+  iErr=system(anAVIMakeCheck.c_str());\r
   iErr=WEXITSTATUS(iErr);\r
   if (iErr==127){\r
     myErrorStatus=iErr;\r