diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-07-25 21:21:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-25 21:21:24 -0400 |
| commit | f1478556565f2e23150c86b17e6e170edc217d23 (patch) | |
| tree | 4e652bde1122f44f360e140b696cb0eb81a7e9e1 /lib/svg/svg.py | |
| parent | 82c06cceda54d559e78792e5284f3520908142ed (diff) | |
| parent | 1bd7aa110a1b30a6c44f4d792b3c817e10234c07 (diff) | |
Merge pull request #234 from inkstitch/lexelby-integrate-pyembroidery
switch from libembroidery to pyembroidery
Diffstat (limited to 'lib/svg/svg.py')
| -rw-r--r-- | lib/svg/svg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/svg/svg.py b/lib/svg/svg.py index 5552abd8..48b1343a 100644 --- a/lib/svg/svg.py +++ b/lib/svg/svg.py @@ -37,6 +37,9 @@ def color_block_to_realistic_stitches(color_block, svg): paths = [] for point_list in color_block_to_point_lists(color_block): + if not point_list: + continue + color = color_block.color.visible_on_white.darker.to_hex_str() start = point_list[0] for point in point_list[1:]: |
