]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixed problem with rectangle selection on elements
authorouv <ouv@opencascade.com>
Fri, 26 Jun 2009 11:08:38 +0000 (11:08 +0000)
committerouv <ouv@opencascade.com>
Fri, 26 Jun 2009 11:08:38 +0000 (11:08 +0000)
src/SVTK/SALOME_Actor.cxx

index 7c849f51e24843149524e232ca786b84eafb62d7..c4f515be2d742296c10c193836ef343ea1192675 100644 (file)
@@ -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;