]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixing bug 16061: IOLS. Attribute error on load script, dumped from attached study...
authorjfa <jfa@opencascade.com>
Fri, 25 May 2007 10:07:59 +0000 (10:07 +0000)
committerjfa <jfa@opencascade.com>
Fri, 25 May 2007 10:07:59 +0000 (10:07 +0000)
src/VISU_I/VISU_ColoredPrs3d_i.cc

index 74dada417e6f573d7fd9b6a9dcea4948aa78dcdb..351952dc8bcbd2f99439f26232e1f2b72312e5ea 100644 (file)
@@ -152,21 +152,22 @@ bool
 VISU::ColoredPrs3d_i
 ::OnSetInput(bool theReInit)
 {
-  myPreviousEntity = myEntity;
-  myPreviousFieldName = myFieldName;
-  myPreviousTimeStampNumber = myTimeStampNumber;
-
   bool anIsCreatNew = !IsPipeLineExists();
   if(anIsCreatNew)
     CreatePipeLine(NULL); // to create proper pipeline
 
   try{
     DoSetInput(anIsCreatNew, theReInit);
+    myPreviousEntity = myEntity;
+    myPreviousFieldName = myFieldName;
+    myPreviousTimeStampNumber = myTimeStampNumber;
   }catch(std::exception& exc){
     INFOS("Follow exception was occured :\n"<<exc.what());
+    OnRestoreInput();
     throw;
   }catch(...){
     INFOS("Unknown exception was occured!");
+    OnRestoreInput();
     throw;
   }