1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 08:38:06 +02:00

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
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];