+ 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
This commit is contained in:
wmayer 2011-12-07 20:26:36 +00:00
parent 69cec966d6
commit b9e1a370e7

View File

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