From 32cd807f3c296935e24860f146c358f1c9a06704 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 8 Dec 2011 09:40:16 +0000 Subject: [PATCH] + fix crash when filleting a shape git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5235 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/PartDesign/App/FeatureFillet.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/PartDesign/App/FeatureFillet.cpp b/src/Mod/PartDesign/App/FeatureFillet.cpp index 98b414bc8..c6a78cffb 100644 --- a/src/Mod/PartDesign/App/FeatureFillet.cpp +++ b/src/Mod/PartDesign/App/FeatureFillet.cpp @@ -82,6 +82,9 @@ App::DocumentObjectExecReturn *Fillet::execute(void) mkFillet.Add(radius, radius, edge); } + if (!mkFillet.IsDone()) + return new App::DocumentObjectExecReturn("Failed to create fillet"); + TopoDS_Shape shape = mkFillet.Shape(); if (shape.IsNull()) return new App::DocumentObjectExecReturn("Resulting shape is null");