mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 01:40:33 +05:00
Fix SIGSEGV raised in UnionList(), DifferenceList() and other functions if the GEOM group becomes empty.
This commit is contained in:
parent
fa7612374a
commit
cafc4bab72
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user