From 0f0b1dbe5b1918a72b4d1bf69dd6824a5ca05a16 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 8 Jun 2005 08:01:48 +0000 Subject: [PATCH] APO: we do not remove IObject from the selection if map of sub indexes is empty --- src/SVTK/SVTK_Selector.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/SVTK/SVTK_Selector.cxx b/src/SVTK/SVTK_Selector.cxx index 2d7c18480..2434515bf 100644 --- a/src/SVTK/SVTK_Selector.cxx +++ b/src/SVTK/SVTK_Selector.cxx @@ -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; } -- 2.39.2