diff options
Diffstat (limited to 'lib/stitches/fill.py')
| -rw-r--r-- | lib/stitches/fill.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py index 60a0cb7d..11c9259b 100644 --- a/lib/stitches/fill.py +++ b/lib/stitches/fill.py @@ -125,6 +125,9 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non end -= center.y height = abs(end - start) + if height == 0: + # return early to avoid divide-by-zero later + return [] # print >> dbg, "grating:", start, end, height, row_spacing, end_row_spacing |
