From b9e1a370e7a91643e150a37d936d60c41cecdd8a Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 7 Dec 2011 20:26:36 +0000 Subject: [PATCH] + fix bug in cone where also a radius of 0 must be allowed git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5231 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Part/App/PrimitiveFeature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/App/PrimitiveFeature.cpp b/src/Mod/Part/App/PrimitiveFeature.cpp index 2e4a5cf80..26b368dc4 100644 --- a/src/Mod/Part/App/PrimitiveFeature.cpp +++ b/src/Mod/Part/App/PrimitiveFeature.cpp @@ -418,9 +418,9 @@ short Cone::mustExecute() const App::DocumentObjectExecReturn *Cone::execute(void) { - if (Radius1.getValue() < Precision::Confusion()) + if (Radius1.getValue() < 0) return new App::DocumentObjectExecReturn("Radius of cone too small"); - if (Radius2.getValue() < Precision::Confusion()) + if (Radius2.getValue() < 0) return new App::DocumentObjectExecReturn("Radius of cone too small"); if (Height.getValue() < Precision::Confusion()) return new App::DocumentObjectExecReturn("Height of cone too small");