]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix issue 0020479: EDF 1116 GEOM: Create a group, "Add" button is inactive but "Selec...
authorvsr <vsr@opencascade.com>
Wed, 23 Sep 2009 10:05:16 +0000 (10:05 +0000)
committervsr <vsr@opencascade.com>
Wed, 23 Sep 2009 10:05:16 +0000 (10:05 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index a857b6406796fa729d5e4f857155e6b7b0f87560..2bf73b05cfae57b52fa22cfefcdaa5c54cb29c91 100644 (file)
@@ -886,7 +886,7 @@ Handle(TColStd_HSequenceOfInteger) GEOMImpl_IShapesOperations::SubShapeAllIDs
   } else {
     TopExp_Explorer exp (aShape, TopAbs_ShapeEnum(theShapeType));
     for (; exp.More(); exp.Next())
-      if (mapShape.Add(exp.Current()))
+      if (!exp.Current().IsSame(aShape) && mapShape.Add(exp.Current()))
        listShape.Append(exp.Current());
   }