mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
Handle line width of zero in SVG
This commit is contained in:
parent
6ebdbb244f
commit
ddabeb0645
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user