summaryrefslogtreecommitdiff
path: root/lib/elements/polyline.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements/polyline.py')
-rw-r--r--lib/elements/polyline.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/elements/polyline.py b/lib/elements/polyline.py
index 4bc71dc0..9d17132a 100644
--- a/lib/elements/polyline.py
+++ b/lib/elements/polyline.py
@@ -94,10 +94,10 @@ class Polyline(EmbroideryElement):
def validation_warnings(self):
yield PolylineWarning(self.path[0][0][0])
- def to_stitch_groups(self, last_patch):
- patch = StitchGroup(color=self.color, lock_stitches=(None, None))
+ def to_stitch_groups(self, last_stitch_group):
+ stitch_group = StitchGroup(color=self.color, lock_stitches=(None, None))
for stitch in self.stitches:
- patch.add_stitch(Point(*stitch))
+ stitch_group.add_stitch(Point(*stitch))
- return [patch]
+ return [stitch_group]