Skip to content

Commit

Permalink
issue #4225: FreeCAD crash when making draft in PartDesign [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 16, 2019
1 parent 00b3aa5 commit 2c13387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/App/FeatureDraft.cpp
Expand Up @@ -192,7 +192,7 @@ App::DocumentObjectExecReturn *Draft::execute(void)
BRepAdaptor_Surface adapt(TopoDS::Face(face), Standard_False);
Handle(Geom_Surface) sf = adapt.Surface().Surface();
GeomAPI_IntSS intersector(aux, sf, Precision::Confusion());
if (!intersector.IsDone())
if (!intersector.IsDone() || intersector.NbLines() < 1)
continue;
Handle(Geom_Curve) icurve = intersector.Line(1);
if (!icurve->IsKind(STANDARD_TYPE(Geom_Line)))
Expand Down

0 comments on commit 2c13387

Please sign in to comment.