From a51025b4d1b7519fdab2626039082ae7f074998d Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 23 Sep 2009 10:05:16 +0000 Subject: [PATCH] Fix issue 0020479: EDF 1116 GEOM: Create a group, "Add" button is inactive but "Select all" button is active --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index a857b6406..2bf73b05c 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -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()); } -- 2.39.2