]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Adjust to HEAD modifications
authorapo <apo@opencascade.com>
Fri, 23 Dec 2005 07:56:08 +0000 (07:56 +0000)
committerapo <apo@opencascade.com>
Fri, 23 Dec 2005 07:56:08 +0000 (07:56 +0000)
src/SVTK/SVTK_Selector.cxx

index 59b52a6960e20ae4c1c199eb4510428cc97512b3..d9ddca8871429b6f3c5d41fc5b62df13caccc7fd 100644 (file)
@@ -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;
 }