From: vsr Date: Wed, 23 Sep 2009 10:01:19 +0000 (+0000) Subject: Fix issue 0020479: EDF 1116 GEOM: Create a group, "Add" button is inactive but "Selec... X-Git-Tag: V5_1_3rc1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81fcc12736dcc7760c2f4c323801f397d943e85a;p=modules%2Fgeom.git Fix issue 0020479: EDF 1116 GEOM: Create a group, "Add" button is inactive but "Select all" button is active --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 519f6c82b..37d06c4ca 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -940,7 +940,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()); }