From c5e898307d82cf221bc1adbd2e7ee08fb6be108a Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 27 Nov 2006 12:09:40 +0000 Subject: [PATCH] Fix a regression --- src/VISU_I/VISU_ColoredPrs3dCache_i.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2