From f572015a97fa3de407fb0900da958d137bce4ae7 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 26 Jun 2009 11:08:23 +0000 Subject: [PATCH] Fixed problem with rectangle selection on elements --- src/SVTK/SALOME_Actor.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 7b086a635..4e5613ee0 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -805,8 +805,13 @@ SALOME_Actor } } } - mySelector->AddOrRemoveIndex( myIO, anIndexes, anIsShift ); - mySelector->AddIObject( this ); + if( !anIndexes.IsEmpty() ) { + mySelector->AddOrRemoveIndex( myIO, anIndexes, anIsShift ); + mySelector->AddIObject( this ); + anIndexes.Clear(); + } + else + mySelector->RemoveIObject( this ); } default: break; -- 2.39.2