summaryrefslogtreecommitdiff
path: root/lib/elements/stroke.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-04-24 08:27:42 +0200
committerGitHub <noreply@github.com>2022-04-24 08:27:42 +0200
commitf9d57f6ea51ea8da186c41b70950b7d87fa2c20b (patch)
tree7c2664fc201933b64cc224adb28ff717e6f08c61 /lib/elements/stroke.py
parent4058712139b56a2419e01db700581b3c9554a88a (diff)
Fix lettering scale, etc. (#1620)
* fix lettering scale * adapt to updated inkex: transform operator, selections * fix #1597 * no traceback error message on broken satin columns * highlight troubleshoot "steps to solve" through additional headline * set a minimum value for running stitch repeats * rename "import" thread list to "apply" thread list
Diffstat (limited to 'lib/elements/stroke.py')
-rw-r--r--lib/elements/stroke.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index 763167ad..307c78b8 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -77,7 +77,8 @@ class Stroke(EmbroideryElement):
default="1",
sort_index=1)
def repeats(self):
- return self.get_int_param("repeats", 1)
+ repeats = self.get_int_param("repeats", 1)
+ return max(1, repeats)
@property
def paths(self):