]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Initial version of files for OCC developers OCC_initial_01
authoradmin <salome-admin@opencascade.com>
Wed, 22 Dec 2004 11:30:36 +0000 (11:30 +0000)
committeradmin <salome-admin@opencascade.com>
Wed, 22 Dec 2004 11:30:36 +0000 (11:30 +0000)
src/VISUGUI/VisuGUI.cxx

index 12229e66b38cfedba19bb4a8bc3eda2c252b0645..ee34ad50fa25d6324e32c722229ac124a8b979c6 100644 (file)
@@ -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();