From: mzn Date: Wed, 8 Jun 2005 08:01:48 +0000 (+0000) Subject: APO: we do not remove IObject from the selection if map of sub indexes is empty X-Git-Tag: T3_0_0_a2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f0b1dbe5b1918a72b4d1bf69dd6824a5ca05a16;p=modules%2Fgui.git APO: we do not remove IObject from the selection if map of sub indexes is empty --- 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; }