summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-05-20 16:01:34 +0200
committerGitHub <noreply@github.com>2025-05-20 16:01:34 +0200
commit72dc85d3dd4fb6813b3ae610f651fe2a1800122b (patch)
tree76acf12708670bfe208fecaebdfe61055f98cda8 /lib
parent1bd2dddab8c9e9b0188f11f2e36682ebc38d1629 (diff)
ripple: return empty when there are no helper lines (#3733)
Diffstat (limited to 'lib')
-rw-r--r--lib/stitches/ripple_stitch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stitches/ripple_stitch.py b/lib/stitches/ripple_stitch.py
index 7a2783f7..231a70e1 100644
--- a/lib/stitches/ripple_stitch.py
+++ b/lib/stitches/ripple_stitch.py
@@ -28,6 +28,8 @@ def ripple_stitch(stroke):
return []
is_linear, helper_lines = _get_helper_lines(stroke)
+ if not helper_lines:
+ return []
num_lines = len(helper_lines[0])
skip_start = _adjust_skip(stroke, num_lines, stroke.skip_start)