]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Improvement of the highlighting/selection mechanism for the case of several coinciden...
authorouv <ouv@opencascade.com>
Thu, 2 Feb 2012 12:38:29 +0000 (12:38 +0000)
committerouv <ouv@opencascade.com>
Thu, 2 Feb 2012 12:38:29 +0000 (12:38 +0000)
Additional fix.

src/SVTK/SVTK_InteractorStyle.cxx

index 5c59da5c88a4eb5bbacae1a97dcb5fe242594824..5d3599e71fcc2ba4732d1bf4516a715e086fcfe8 100644 (file)
@@ -1052,7 +1052,8 @@ void SVTK_InteractorStyle::onFinishOperation()
               {
                 if( SALOME_Actor* anActor = SALOME_Actor::SafeDownCast( aVTKActor ) )
                 {
-                  if( anActor->Highlight( this, aSelectionEvent, true ) )
+                  if( anActor->Highlight( this, aSelectionEvent, true ) &&
+                      anActor->isHighlighted() )
                   {
                     aHighlightedActor = anActor;
                     break;