fablabnbg / inkscape-paths2openscad

Inkscape extension for designing simple 3D objects (2.5D actually) with inkscape. DOWNLOAD: https://github.com/fablabnbg/inkscape-paths2openscad/releases/latest

Home Page:http://www.thingiverse.com/thing:25036/#comment-1233550

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inkscape 0.92 saves wrong unit with stroke width

jnweiger opened this issue · comments

When document-units is 'mm', a stroke-width of '0.265' means 0.265mm, but inkscape saves this as
style='stroke-width:0.26458332px;'

This also happens when saving to an svg file. Inkscape loads this correctly as 0.265mm, despite the 'px' unit. We interpret the explicit px as px and calculate a much thinner line.

changing the line width back and forth from the gui, causes inkscape to send the expected style='stroke-width:0.265;' without false 'px' units.

Is inkscape ignoring units within style when loading?

kringels.svg.txt

This seems only to happen, when the tool is set to Fill: None, Stroke: BLACK None.
Not sure how to reproduce this setting.

It is probably a bug, that a unit appeared with the stroke-width value at all.