aboutsummaryrefslogtreecommitdiff
path: root/imagemap.py
diff options
context:
space:
mode:
authorViatrix2026-03-15 15:29:42 -0700
committerViatrix2026-03-15 15:29:42 -0700
commit57aa116144d51783a12bb288554dd69846706386 (patch)
tree7e271a14e781a5bc75cfc7a4e88ede55fe7468b8 /imagemap.py
parentc03729d9bb9c0902b89a15643e67b620f7dd669b (diff)
Groups now work.
Diffstat (limited to 'imagemap.py')
-rw-r--r--imagemap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/imagemap.py b/imagemap.py
index 30fa0cd..9ab1e55 100644
--- a/imagemap.py
+++ b/imagemap.py
@@ -66,7 +66,7 @@ class ImageMap(inkex.OutputExtension):
# save link attributes because they get removed when flattening
link={attr:AREA_ATTRS[attr](a) for attr in AREA_ATTRS.keys()}
for el in a.iterdescendants(): # CSS is preserved when flattening (for paths)
- if not isinstance(el,inkex.ShapeElement): continue
+ if not isinstance(el,inkex.ShapeElement) or isinstance(el,inkex.Group): continue
style=el.effective_style()
style[CSS_LINK_INDEX]=f'" {CSS_LINK_INDEX}-{len(links)} "'
if el.tag=='{http://www.w3.org/2000/svg}image':