From ddabeb06452494b60fc366016bbdaa3df6eb655c Mon Sep 17 00:00:00 2001 From: Jani Pehkonen Date: Tue, 4 Dec 2018 16:05:32 +0200 Subject: [PATCH] Handle line width of zero in SVG --- src/display/svg.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/display/svg.js b/src/display/svg.js index 9e1cc1a50..e36e2c73b 100644 --- a/src/display/svg.js +++ b/src/display/svg.js @@ -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];