diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2021-04-15 18:39:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-15 18:39:36 +0200 |
| commit | 13c8c81be885b2f68076979189b9a0e9d443de7b (patch) | |
| tree | e4623f69db96a32cb58784c560f737f0bd45ac4b | |
| parent | f49de8b0cb772c6467fab1b8d45bd9f3dac837ce (diff) | |
divide zero in satin column (#1151)
| -rw-r--r-- | lib/elements/satin_column.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index f86cc268..778fc88a 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -647,6 +647,9 @@ class SatinColumn(EmbroideryElement): last_index0 = len(section0) - 1 last_index1 = len(section1) - 1 + if len0 == 0: + continue + ratio = len1 / len0 index0 = 0 |
