Wrong parsing of stroke-dasharray attribute when using decimals with omitted 0
Bug #1441045 reported by
Olivier Berten
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Tavmjong Bah |
Bug Description
If the drawing uses decimals without the leading 0, the second element of the pair gets misinterpreted. In the test drawing attached,
stroke-
is interpreted as
stroke-
Related branches
tags: | added: styles svg |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
confirmed on Windows XP, Inkscape 0.91+devel r14031 (Mar 24 2015)
inspect the original file to see that the line has the attribute: dasharray= ".537,. 537",
stroke-
with no style attribute.
now load the file into Inkscape, select the line, and hit the down arrow to refresh the line. Save it as testsaved.svg, attached here. Note that the stroke-dasharray attribute has been converted into a style attribute where the second dasharray length is too long.
<line effect= "non-scaling- stroke" "fill:none; stroke: #000000; stroke- width:0. 09;stroke- dasharray: 0.537, 537" />
id="e1_line"
x1="460"
y1="208"
x2="814"
y2="268"
vector-
style=