summaryrefslogtreecommitdiff
path: root/lib/elements/pattern.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements/pattern.py')
-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', '')