Stroke to path fails if path has no fill/stroke/marker
Summary:
The SVG file found here USA.svg when running stroke to path via the CLI throws an exception
Steps to reproduce:
When I run Inkscape from the CLI with this command (to convert paths to strokes) inkscape "in_file.svg" --export-plain-svg --batch-process --actions "EditSelectAll;StrokeToPath;FileSave" --export-filename "out_file.svg"
(this is the input SVG https://jsfiddle.net/zoe6ayL3/), I get this error. This command works for other files I am testing it on.
Alternative:
- Open inkscape
- draw a rectangle
- Object to Path
- change fill to None
- unset stroke
- Stroke to path
What happened?
ERROR:/Users/Shared/work/6DxXS3HP/0/inkscape/inkscape/src/xml/repr-css.cpp:474:void sp_repr_css_change(Inkscape::XML::Node *, SPCSSAttr *, const gchar *): assertion failed: (repr != nullptr)
Bail out! ERROR:/Users/Shared/work/6DxXS3HP/0/inkscape/inkscape/src/xml/repr-css.cpp:474:void sp_repr_css_change(Inkscape::XML::Node *, SPCSSAttr *, const gchar *): assertion failed: (repr != nullptr)
What should have happened?
No Exception should have been thrown
Version Info:
- Inkscape Version: 1.02, 1.10
- Operating System: MacOS
- Operating System version: 11.2.3