mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 00:30:01 +00:00
nanosvg: Fix nanosvg default stroke width to assume 0 instead of 1px
Nanosvg assumes that an unspecified stroke width is 1px, whereas the SVG specification specifies it should be read as 0px. This causes problems when scaling factors are applied to 0px lines, leading to them being misinterpeted by our import. This commit fixes the nanosvg assumption by setting the initial stroke width to 0 instead of 1px. Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13353
This commit is contained in:
parent
f34aa947d3
commit
327956ae27
2
thirdparty/nanosvg/nanosvg.cpp
vendored
2
thirdparty/nanosvg/nanosvg.cpp
vendored
@ -588,7 +588,7 @@ static NSVGparser* nsvg__createParser()
|
||||
p->attr[0].fillOpacity = 1;
|
||||
p->attr[0].strokeOpacity = 1;
|
||||
p->attr[0].stopOpacity = 1;
|
||||
p->attr[0].strokeWidth = 1;
|
||||
p->attr[0].strokeWidth = 0;
|
||||
p->attr[0].strokeLineJoin = NSVG_JOIN_MITER;
|
||||
p->attr[0].strokeLineCap = NSVG_CAP_BUTT;
|
||||
p->attr[0].miterLimit = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user