]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug GVIEW10342
authorapo <apo@opencascade.com>
Wed, 11 Jan 2006 14:34:25 +0000 (14:34 +0000)
committerapo <apo@opencascade.com>
Wed, 11 Jan 2006 14:34:25 +0000 (14:34 +0000)
 Selection by rectangle selects the erased mesh.

src/SVTK/SVTK_InteractorStyle.cxx

index b429827894f8caa6376bc6ac65ead48cf1398143..389c3a359457848ef28b4d68048f8f0f2e0f6e35 100644 (file)
@@ -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 );
+               }
              }
            }
          }