Skip to content

Commit

Permalink
Part: [skip ci] fix crash in BRepOffsetAPI_MakeOffsetFix
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 17, 2020
1 parent 45d9660 commit 9cefd88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Part/App/BRepOffsetAPI_MakeOffsetFix.cpp
Expand Up @@ -159,6 +159,11 @@ const TopoDS_Shape& BRepOffsetAPI_MakeOffsetFix::Shape()
{
if (myResult.IsNull()) {
TopoDS_Shape result = mkOffset.Shape();
if (result.IsNull()) {
myResult = result;
return myResult;
}

if (result.ShapeType() == TopAbs_WIRE) {
MakeWire(result);
}
Expand Down

0 comments on commit 9cefd88

Please sign in to comment.