Handle line width of zero in SVG

This commit is contained in:
Jani Pehkonen 2018-12-04 16:05:32 +02:00
parent 6ebdbb244f
commit ddabeb0645

View File

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