diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-01-28 21:02:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-28 21:02:45 -0500 |
| commit | 99c6b5f0723fc01acabee1d5acb12553e85ce6d0 (patch) | |
| tree | f4ae4c29400ca3c16c250e29b3605db03e8f0039 /inkstitch.py | |
| parent | 871802e4eb555423beca8d1da81255edc0f424ce (diff) | |
protect against bad values for certain params (#44)
This is a stopgap measure to prevent the extension from infinitely looping
if the user mistakenly gives a zero or negative value for zig-zag spacing
or running stitch length.
It's definitely not ideal -- the user is still allowed to enter invalid
numbers, but the extension just interprets any zero value as 0.01. In
the future, I'll refactor things to add proper bounds-checking for
parameters and limit the values that can be entered in the UI.
Diffstat (limited to 'inkstitch.py')
0 files changed, 0 insertions, 0 deletions
