Salome HOME
APO: we do not remove IObject from the selection if map of sub indexes is empty
authormzn <mzn@opencascade.com>
Wed, 8 Jun 2005 08:01:48 +0000 (08:01 +0000)
committermzn <mzn@opencascade.com>
Wed, 8 Jun 2005 08:01:48 +0000 (08:01 +0000)
src/SVTK/SVTK_Selector.cxx

index 2d7c1848056cc0e0b2e11fe0d0debc33a9460665..2434515bf1b09cd3777a944b61204df5c25dd562 100644 (file)
@@ -128,7 +128,6 @@ SVTK_SelectorDef
 
   myIObjects.erase(theIO);
   myIO2Actors.erase(theIO);
-  myMapIOSubIndex.erase(theIO);
 
   return anIsIOBound;
 }
@@ -247,7 +246,7 @@ SVTK_SelectorDef
     aMapIndex.Add(theIndices(i));
   
   if(aMapIndex.IsEmpty())
-    RemoveIObject(theIO);
+    myMapIOSubIndex.erase(theIO);
 
   return !aMapIndex.IsEmpty();
 }
@@ -275,7 +274,7 @@ SVTK_SelectorDef
     aMapIndex.Add(anIter.Key());
   
   if(aMapIndex.IsEmpty())
-    RemoveIObject(theIO);
+    myMapIOSubIndex.erase(theIO);
 
   return !aMapIndex.IsEmpty();
 }
@@ -306,7 +305,7 @@ SVTK_SelectorDef
     aMapIndex.Add( theIndex );
 
   if( aMapIndex.IsEmpty())
-    RemoveIObject(theIO);
+    myMapIOSubIndex.erase(theIO);
 
   return false;
 }