Merge pull request #10330 from janpe2/svg-line-width-zero

Handle line width of zero in SVG
This commit is contained in:
Tim van der Meij 2018-12-07 23:34:27 +01:00 committed by GitHub
commit 45c0197465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -903,7 +903,9 @@ SVGGraphics = (function SVGGraphicsClosure() {
// Path properties
setLineWidth: function SVGGraphics_setLineWidth(width) {
this.current.lineWidth = width;
if (width > 0) {
this.current.lineWidth = width;
}
},
setLineCap: function SVGGraphics_setLineCap(style) {
this.current.lineCap = LINE_CAP_STYLES[style];