chamfer size must be greater than zero

This commit is contained in:
wmayer
2018-04-04 16:25:11 +02:00
parent 130885c010
commit 24eb8eec9b

View File

@@ -84,6 +84,8 @@ App::DocumentObjectExecReturn *Chamfer::execute(void)
return new App::DocumentObjectExecReturn("No edges specified");
double size = Size.getValue();
if (size <= 0)
return new App::DocumentObjectExecReturn("Size must be greater than zero");
this->positionByBaseFeature();
// create an untransformed copy of the basefeature shape