Part: fix crash in TopoShape::makEFace()

This commit is contained in:
Zheng, Lei
2020-02-28 17:06:39 +08:00
committed by wwmayer
parent 4768fa01f7
commit b7a9d2dc37

View File

@@ -3960,8 +3960,8 @@ TopoShape &TopoShape::makECompound(const std::vector<TopoShape> &shapes, const c
TopoShape &TopoShape::makEFace(const TopoShape &shape, const char *op, const char *maker)
{
std::vector<TopoShape> shapes;
if(shape.getShape().ShapeType() == TopAbs_COMPOUND) {
for(TopoDS_Iterator it(_Shape);it.More();it.Next())
if(shape.shapeType() == TopAbs_COMPOUND) {
for(TopoDS_Iterator it(shape.getShape());it.More();it.Next())
shapes.push_back(it.Value());
} else
shapes.push_back(shape);