Fix issue 0020479: EDF 1116 GEOM: Create a group, "Add" button is inactive but "Select all" button is active

This commit is contained in:
vsr 2009-09-23 10:01:19 +00:00
parent fe345c70bb
commit 81fcc12736

View 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());
}