]> 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:23 +0000 (11:08 +0000)
committerouv <ouv@opencascade.com>
Fri, 26 Jun 2009 11:08:23 +0000 (11:08 +0000)
src/SVTK/SALOME_Actor.cxx

index 7b086a635c3fd8c8df7cef88d2b9ee8693e69a27..4e5613ee0c5198675076813f7609edb0259c1d91 100644 (file)
@@ -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;