From: apo Date: Fri, 23 Dec 2005 07:56:08 +0000 (+0000) Subject: Adjust to HEAD modifications X-Git-Tag: TG-D5-38-2003_D2005-29-12~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c028b2f72e3384b1b6195d8243ad478dfef9c912;p=modules%2Fgui.git Adjust to HEAD modifications --- 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; }