From e66d25425076cc0e01e5c60ef8ee1777ede55730 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 11 Jan 2006 14:34:25 +0000 Subject: [PATCH] Fix for Bug GVIEW10342 Selection by rectangle selects the erased mesh. --- src/SVTK/SVTK_InteractorStyle.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index b42982789..389c3a359 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -930,9 +930,11 @@ SVTK_InteractorStyle vtkActorCollection* aListActors = GetCurrentRenderer()->GetActors(); aListActors->InitTraversal(); while(vtkActor* aActor = aListActors->GetNextActor()){ - if(SALOME_Actor* aSActor = SALOME_Actor::SafeDownCast(aActor)){ - if(aSActor->hasIO()){ - aSActor->Highlight( this, aSelectionEvent, true ); + if(aActor->GetVisibility()){ + if(SALOME_Actor* aSActor = SALOME_Actor::SafeDownCast(aActor)){ + if(aSActor->hasIO()){ + aSActor->Highlight( this, aSelectionEvent, true ); + } } } } -- 2.39.2