Fix SIGSEGV raised in UnionList(), DifferenceList() and other functions if the GEOM group becomes empty.

This commit is contained in:
vsr 2011-04-25 13:01:26 +00:00
parent fa7612374a
commit cafc4bab72

View File

@ -297,6 +297,7 @@ void GEOMImpl_IGroupOperations::UnionList (Handle(GEOM_Object) theGroup,
Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theSubShapes->Value(i));
TopoDS_Shape aShape_i = anObj_i->GetValue();
if ( aShape_i.IsNull() ) continue;
TopAbs_ShapeEnum aType_i = aShape_i.ShapeType();
// 1. If aShape_i is sub-shape of aMainShape - add it