summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2021-06-29 21:00:45 +0200
committerKaalleen <reni@allenka.de>2021-06-29 21:00:45 +0200
commita152e1edea19ae16f8226032f9cd2ded004b168c (patch)
treee109701e2e1c724ff1af7b649a5b28d3669be68c /lib
parent9604e411d4e50b011e4ae41bdcfdf95c45640684 (diff)
only check embroiderable tags for pattern marker
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/pattern.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/elements/pattern.py b/lib/elements/pattern.py
index c66ffbdc..fa54b7ba 100644
--- a/lib/elements/pattern.py
+++ b/lib/elements/pattern.py
@@ -6,6 +6,7 @@
import inkex
from ..i18n import _
+from ..svg.tags import EMBROIDERABLE_TAGS
from .element import EmbroideryElement
from .validation import ObjectTypeWarning
@@ -33,4 +34,6 @@ class PatternObject(EmbroideryElement):
def is_pattern(node):
+ if node.tag not in EMBROIDERABLE_TAGS:
+ return False
return "marker-start:url(#inkstitch-pattern-marker)" in node.get('style', '')