Fillet Feature: Return if radius <= 0

This commit is contained in:
Abdullah Tahiri
2017-05-30 22:29:47 +02:00
parent 7574429615
commit 0b3bec3396

View File

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