Skip to content

Commit

Permalink
Part: fix crash in TopoShape::makEFace()
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Mar 1, 2020
1 parent 4768fa0 commit b7a9d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Part/App/TopoShape.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit b7a9d2d

Please sign in to comment.