From ee6015f3b42378bf766a0292f031fe4ec7d4d365 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 22 Dec 2004 11:30:36 +0000 Subject: [PATCH] Initial version of files for OCC developers --- src/VISUGUI/VisuGUI.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 12229e66..ee34ad50 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -3974,6 +3974,8 @@ VISU_Actor* VisuGUI::UpdateViewer(VISU::Prs3d_i* thePrs, bool theDispOnly){ VISU_Actor* aResActor = NULL; VISU::Prs3d_i* aSrcAddr = thePrs; for(anActColl->InitTraversal(); (anActor = anActColl->GetNextActor()) != NULL; ){ + if(!SALOME_Actor::SafeDownCast(anActor)) + continue; if(anActor->IsA("VISU_Actor")){ anVISUActor = VISU_Actor::SafeDownCast(anActor); VISU::Prs3d_i* aPrs = anVISUActor->GetPrs3d(); -- 2.39.2