Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inkscape 0.92 saves wrong unit with stroke width #2

Open
jnweiger opened this issue Apr 16, 2017 · 1 comment
Open

inkscape 0.92 saves wrong unit with stroke width #2

jnweiger opened this issue Apr 16, 2017 · 1 comment

Comments

@jnweiger
Copy link
Member

jnweiger commented Apr 16, 2017

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

@jnweiger
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant