]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL15154
authorapo <apo@opencascade.com>
Tue, 15 May 2007 10:35:33 +0000 (10:35 +0000)
committerapo <apo@opencascade.com>
Tue, 15 May 2007 10:35:33 +0000 (10:35 +0000)
- IOLS. Crash on Animation, Play. Shape TimeStamps.med, Setup vitesse/Vectors, Pression/Iso Surface.

src/VISU_I/VISU_Prs3d_i.cc

index e9af3d5d0246ea7b5065b92c1c50e737b4300ef1..edf465948845edb27bee8b1c811bc28e9920c8ea 100644 (file)
@@ -135,7 +135,8 @@ VISU::Prs3d_i
 {
   try{
     if(SetInput(theReInit)){
-      UpdateActors();
+      if(myActorCollection->GetNumberOfItems())
+       UpdateActors();
       return true;
     }
   }catch(std::exception& exc){
@@ -351,7 +352,7 @@ VISU::Prs3d_i
   try{
     GetPipeLine()->Update();
     myUpdateTime.Modified();
-  } catch(std::exception&){
+  }catch(std::exception&){
     throw;
   }catch(...){
     throw std::runtime_error("Prs3d_i::Update >> unexpected exception was caught!!!");