Merge pull request #524 from inkstitch/lexelby/fix-auto-satin

fix 'LineString has no method geoms' error
pull/618/head
Lex Neva 2020-01-31 20:09:39 -05:00 zatwierdzone przez GitHub
commit 6873098dee
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

@ -201,7 +201,7 @@ class RunningStitch(object):
# Technically a Stroke object's underlying path could have multiple
# subpaths. We don't have a particularly good way of dealing with
# that so we'll just use the first one.
self.path = path_or_stroke.shape.geoms[0]
self.path = shgeo.LineString(path_or_stroke.paths[0])
original_element = path_or_stroke
else:
self.path = path_or_stroke