From db607961b9606237aea3c936676cd4c6c7cf5e13 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 26 Jun 2009 11:08:38 +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 7c849f51e..c4f515be2 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -766,8 +766,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