summaryrefslogtreecommitdiff
path: root/lib/svg
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2022-05-02 14:38:33 -0400
committerKaalleen <reni@allenka.de>2022-05-04 19:18:33 +0200
commitbd8cb0d1ff2ce1f17ed8d3a5eaca19f8e8652ad0 (patch)
tree960ddbd5328c1ee5a3be0fde72c84147d348ae2a /lib/svg
parente6fcf11035d3d953c2b07e6d153a1225f79cb781 (diff)
use running_stitch instead for guided fill
Diffstat (limited to 'lib/svg')
-rw-r--r--lib/svg/path.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/svg/path.py b/lib/svg/path.py
index c33a7a8f..6c2cbe35 100644
--- a/lib/svg/path.py
+++ b/lib/svg/path.py
@@ -74,6 +74,12 @@ def get_correction_transform(node, child=False):
def line_strings_to_csp(line_strings):
+ try:
+ # This lets us accept a MultiLineString or a list.
+ line_strings = line_strings.geoms
+ except AttributeError:
+ pass
+
return point_lists_to_csp(ls.coords for ls in line_strings)