jump to stroke: fix end position (#2148)

pull/2159/head
Kaalleen 2023-03-16 20:01:19 +01:00 zatwierdzone przez GitHub
rodzic 29b72801cd
commit f75db73a2c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)