diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2020-08-18 16:16:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 16:16:34 -0400 |
| commit | cc5273006cc7fd80291939ec9ea88fc2ad67417d (patch) | |
| tree | 01a354dccdcb1a5dfce76fa9769233b6d43aac87 /lib/elements/element.py | |
| parent | e5e16edc0d07f5f8f2b9f28209cbc3049be0988f (diff) | |
| parent | c22035cf27a9f11f64397fec8ba03f54cc144668 (diff) | |
Merge pull request #736 from inkstitch/kaalleen/link-transforms
transforms on links
Diffstat (limited to 'lib/elements/element.py')
| -rw-r--r-- | lib/elements/element.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py index 70d49278..fe1491d8 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -11,7 +11,7 @@ from ..i18n import _ from ..svg import PIXELS_PER_MM, apply_transforms, convert_length, get_doc_size from ..svg.tags import (EMBROIDERABLE_TAGS, INKSCAPE_LABEL, INKSTITCH_ATTRIBS, SVG_CIRCLE_TAG, SVG_ELLIPSE_TAG, SVG_GROUP_TAG, - SVG_OBJECT_TAGS, SVG_RECT_TAG) + SVG_OBJECT_TAGS, SVG_RECT_TAG, SVG_LINK_TAG) from ..utils import cache from .svg_objects import circle_to_path, ellipse_to_path, rect_to_path @@ -161,7 +161,7 @@ class EmbroideryElement(object): @cache def _get_style_raw(self, style_name): - if self.node.tag != SVG_GROUP_TAG and self.node.tag not in EMBROIDERABLE_TAGS: + if self.node.tag not in [SVG_GROUP_TAG, SVG_LINK_TAG] and self.node.tag not in EMBROIDERABLE_TAGS: return None style = self.parse_style() |
