- mySelector->GetIndex(aPathActor->getIO(), selectedIndices);
- if (selectedIndices.Add(n->GetID())) {
- newIndices.Add(n->GetID());
- mySelector->AddOrRemoveIndex( aPathActor->getIO(), newIndices, true );
- myViewWindow->highlight( aPathActor->getIO(), true, true );
- }
+ newIndices.Add(n->GetID());
+ mySelector->AddOrRemoveIndex( aPathActor->getIO(), newIndices, false );
+ if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
+ aViewWindow->highlight( aPathActor->getIO(), true, true );