]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
try - catch is added
authorouv <ouv@opencascade.com>
Tue, 28 Nov 2006 11:42:21 +0000 (11:42 +0000)
committerouv <ouv@opencascade.com>
Tue, 28 Nov 2006 11:42:21 +0000 (11:42 +0000)
src/VISU_I/VISU_ColoredPrs3d_i.cc

index 797a56d98154b200a84b8eb28b93114cd84f9925..344291540aa07d6bfa9cb3d5bec23a70c473e078 100644 (file)
@@ -106,15 +106,21 @@ bool
 VISU::ColoredPrs3d_i
 ::SetInput()
 {
-  if(TSuperClass::SetInput()){
-    if(CheckIsPossible()){
-      if(OnSetInput()){
-       if(Create(GetCMeshName(),GetEntity(),GetCFieldName(),GetTimeStampNumber()))
+  cout << "VISU::ColoredPrs3d_i::SetInput()" << endl;
+  try{
+    if(TSuperClass::SetInput()){
+      if(CheckIsPossible()){
+       if(OnSetInput()){
+         if(Create(GetCMeshName(),GetEntity(),GetCFieldName(),GetTimeStampNumber()))
+           return true;
+       }else
          return true;
-      }else
-       return true;
+      }
     }
+  }catch(...){
   }
+  cout << "VISU::ColoredPrs3d_i::SetInput() finished" << endl;
+
   return false;
 }