]> 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:01:19 +0000 (10:01 +0000)
committervsr <vsr@opencascade.com>
Wed, 23 Sep 2009 10:01:19 +0000 (10:01 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 519f6c82ba1fa8f4770a7be743b9d59859bababc..37d06c4ca2043d02fa50224e8401847f2b6f8525 100644 (file)
@@ -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());
   }