From ffea1d2bc1978051b671f790608ba33f302ba27f Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 28 Feb 2016 14:02:57 -0500 Subject: fix: stitches appearing outside fill in case of very short rows --- embroider.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'embroider.py') diff --git a/embroider.py b/embroider.py index 4ef9925a..7ec9d245 100644 --- a/embroider.py +++ b/embroider.py @@ -722,13 +722,10 @@ class Embroider(inkex.Effect): offset = (first_stitch - beg).length() - while True: + while offset < segment_length: patch.addStitch(beg + offset * row_direction) offset += max_stitch_len_px - if offset > segment_length: - break - if (end - patch.stitches[-1]).length() > 0.1 * pixels_per_millimeter: patch.addStitch(end) -- cgit v1.2.3