From c028b2f72e3384b1b6195d8243ad478dfef9c912 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 23 Dec 2005 07:56:08 +0000 Subject: [PATCH] Adjust to HEAD modifications --- src/SVTK/SVTK_Selector.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/SVTK/SVTK_Selector.cxx b/src/SVTK/SVTK_Selector.cxx index 59b52a696..d9ddca887 100644 --- a/src/SVTK/SVTK_Selector.cxx +++ b/src/SVTK/SVTK_Selector.cxx @@ -276,10 +276,12 @@ SVTK_SelectorDef for(int i = 1, iEnd = theIndices.Extent(); i <= iEnd; i++) aMapIndex.Add(theIndices(i)); - if(aMapIndex.IsEmpty()) + if(aMapIndex.IsEmpty()) { myMapIOSubIndex.erase(theIO); + return false; + } - return !aMapIndex.IsEmpty(); + return true; } @@ -304,10 +306,12 @@ SVTK_SelectorDef for(; anIter.More(); anIter.Next()) aMapIndex.Add(anIter.Key()); - if(aMapIndex.IsEmpty()) + if(aMapIndex.IsEmpty()) { myMapIOSubIndex.erase(theIO); + return false; + } - return !aMapIndex.IsEmpty(); + return true; } -- 2.39.2