From: apo Date: Tue, 15 May 2007 10:35:33 +0000 (+0000) Subject: Fix for Bug IPAL15154 X-Git-Tag: mergeto_BR_Dev_For_4_0_21May07~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b019761734fb2d0ed476eb0994e7467ca960390e;p=modules%2Fvisu.git Fix for Bug IPAL15154 - IOLS. Crash on Animation, Play. Shape TimeStamps.med, Setup vitesse/Vectors, Pression/Iso Surface. --- diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index e9af3d5d..edf46594 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -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!!!");