From: apo Date: Wed, 11 Jan 2006 14:34:25 +0000 (+0000) Subject: Fix for Bug GVIEW10342 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e66d25425076cc0e01e5c60ef8ee1777ede55730;p=modules%2Fgui.git Fix for Bug GVIEW10342 Selection by rectangle selects the erased mesh. --- 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 ); + } } } }