issue #0004225: FreeCAD crash when making draft in PartDesign [skip ci]

This commit is contained in:
wmayer
2019-12-16 15:26:34 +01:00
parent 00b3aa5cfa
commit 2c13387cef

View File

@@ -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)))