From 0b3bec33964c33d234497dca68b667c2d4fbf568 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Tue, 30 May 2017 22:29:47 +0200 Subject: [PATCH] Fillet Feature: Return if radius <= 0 --- 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 e0313e213c..55eb782dde 100644 --- a/src/Mod/PartDesign/App/FeatureFillet.cpp +++ b/src/Mod/PartDesign/App/FeatureFillet.cpp @@ -78,6 +78,9 @@ App::DocumentObjectExecReturn *Fillet::execute(void) return new App::DocumentObjectExecReturn("Fillet not possible on selected shapes"); double radius = Radius.getValue(); + + if(radius <= 0) + return new App::DocumentObjectExecReturn("Fillet radius must be greater than zero"); this->positionByBaseFeature();