diff options
Diffstat (limited to 'imagemap.py')
| -rw-r--r-- | imagemap.py | 2 |
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': |
