]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix on Bug GVIEW10217
authorapo <apo@opencascade.com>
Tue, 11 Oct 2005 12:27:24 +0000 (12:27 +0000)
committerapo <apo@opencascade.com>
Tue, 11 Oct 2005 12:27:24 +0000 (12:27 +0000)
 Deselection of faces doesn't work

src/SVTK/SALOME_Actor.cxx

index fd3c506d2051a6ecd237924e3dc8b559c454c996..8cad00b312971a09d8d3501e702efd05b38e9f24 100644 (file)
@@ -724,6 +724,9 @@ SALOME_Actor
 ::highlight(bool theHighlight, 
            Selection_Mode theSelectionMode)
 {
+  myHighlightActor->SetVisibility( false );
+  myOutlineActor->SetVisibility( false );
+
   if(hasHighlight() && theSelectionMode == ActorSelection)
     highlight(theHighlight);
   else{
@@ -732,11 +735,11 @@ SALOME_Actor
     if( !GetVisibility() )
       return;
     
-    if(theSelectionMode == ActorSelection){
-      myOutline->SetBounds( GetBounds() );
-      myOutlineActor->SetVisibility( theHighlight );
-    }else
+    if(theSelectionMode != ActorSelection)
       myHighlightActor->SetVisibility( theHighlight );
+
+    myOutline->SetBounds( GetBounds() );
+    myOutlineActor->SetVisibility( theHighlight );
   }
 }