diff options
| author | Viatrix | 2026-03-12 14:46:44 -0700 |
|---|---|---|
| committer | Viatrix | 2026-03-12 14:46:44 -0700 |
| commit | e475a7d88c9cc4128852a431dfe1977e426e4efc (patch) | |
| tree | 4f9dc4aec034a8f38489d942b53bbccfe38d9b28 /imagemap.py | |
| parent | 318a84508163ad786f12ee72d01b1b15d3295f73 (diff) | |
Objects with both fill and stroke now work
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 89452be..3d25403 100644 --- a/imagemap.py +++ b/imagemap.py @@ -70,7 +70,7 @@ class ImageMap(inkex.OutputExtension): if len(links)==0: raise inkex.AbortExtension(_("Image has no hyperlinks.\nAdd a hyperlink to an object with right-click → \"{}\".").format(_("Create Anchor (Hyperlink)"))) command=\ - ';'.join(f'select-clear;select-by-selector:[style~="{CSS_LINK_INDEX}-{i}"];object-stroke-to-path;path-union;object-set-attribute:style,{CSS_LINK_INDEX}:" {CSS_LINK_INDEX}-{i} "' for i in range(len(links))) \ + ';'.join(f'select-clear;select-by-selector:[style~="{CSS_LINK_INDEX}-{i}"];object-stroke-to-path;selection-ungroup;path-union;object-set-attribute:style,{CSS_LINK_INDEX}:" {CSS_LINK_INDEX}-{i} "' for i in range(len(links))) \ +';select-all;path-flatten;path-split' # (we re-set the existing style attribute in case it got unset on non-paths) newbytes=inkscape_command(self.svg,actions=command) |
