Salome HOME
New item (FontItem), allowing to show information about font setting and to select...
[modules/gui.git] / src / SVTK / SVTK_Selector.cxx
index 2d7c1848056cc0e0b2e11fe0d0debc33a9460665..96690603ea100e6a8a34cfb2c37dca85171d9967 100644 (file)
@@ -128,7 +128,6 @@ SVTK_SelectorDef
 
   myIObjects.erase(theIO);
   myIO2Actors.erase(theIO);
-  myMapIOSubIndex.erase(theIO);
 
   return anIsIOBound;
 }
@@ -243,11 +242,11 @@ SVTK_SelectorDef
   if(!theIsModeShift)
     aMapIndex.Clear();
   
-  for(int i = 0, iEnd = theIndices.Extent(); i < iEnd; i++)
+  for(int i = 1, iEnd = theIndices.Extent(); i <= iEnd; i++)
     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;
 }