Skip to content

Commit

Permalink
chamfer size must be greater than zero
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 4, 2018
1 parent 1b49a00 commit deaef0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/PartDesign/App/FeatureChamfer.cpp
Expand Up @@ -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
Expand Down

0 comments on commit deaef0a

Please sign in to comment.