From: ouv Date: Fri, 26 Jun 2009 11:08:38 +0000 (+0000) Subject: Fixed problem with rectangle selection on elements X-Git-Tag: V4_1_0_maintainance_FINAL~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db607961b9606237aea3c936676cd4c6c7cf5e13;p=modules%2Fgui.git Fixed problem with rectangle selection on elements --- 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;