From: apo Date: Mon, 27 Nov 2006 12:09:40 +0000 (+0000) Subject: Fix a regression X-Git-Tag: WP1_2_3_05-12-2006_cache_system~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5e898307d82cf221bc1adbd2e7ee08fb6be108a;p=modules%2Fvisu.git Fix a regression --- diff --git a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc index 80ee8d22..a8f0fa3e 100644 --- a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc @@ -441,7 +441,7 @@ VISU::ColoredPrs3dCache_i SVTK::Find(anActors, VISU::TIsSamePrs3d(aLastVisitedPrs3d)); // If the holder was erased from view then do nothing - if(!anActor->GetVisibility()) + if(!anActor || !anActor->GetVisibility()) return true; if(aPrs3d != aLastVisitedPrs3d){ @@ -455,7 +455,7 @@ VISU::ColoredPrs3dCache_i SVTK::Find(anActors, VISU::TIsSamePrs3d(aPrs3d)); if(!aNewActor){ - anActor = aPrs3d->CreateActor(); + aNewActor = aPrs3d->CreateActor(); aViewWindow->AddActor(aNewActor); }else aNewActor->SetVisibility(true);