summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-03-16 20:01:19 +0100
committerGitHub <noreply@github.com>2023-03-16 20:01:19 +0100
commitf75db73a2c851e59d0d80d85da78ab1532a0d2cb (patch)
treedba6c13bff810f300f1bf30106060697d2dbec56 /lib/extensions
parent29b72801cd0973559ac04b584d376286f58746ff (diff)
jump to stroke: fix end position (#2148)
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/jump_to_stroke.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/jump_to_stroke.py b/lib/extensions/jump_to_stroke.py
index ce29a928..9c9d099f 100644
--- a/lib/extensions/jump_to_stroke.py
+++ b/lib/extensions/jump_to_stroke.py
@@ -29,7 +29,7 @@ class JumpToStroke(InkstitchExtension):
last_color = None
for element in self.elements:
stitch_group = element.to_stitch_groups(last_stitch_group)
- end = stitch_group[-1].stitches[-1]
+ end = stitch_group[-1].stitches[0]
if last_stitch_group is not None and element.color == last_color:
start = last_stitch_group.stitches[-1]
self.generate_stroke(element, start, end)