mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Handle line width of zero in SVG
This commit is contained in:
parent
6ebdbb244f
commit
ddabeb0645
1 changed files with 3 additions and 1 deletions
|
@ -903,7 +903,9 @@ SVGGraphics = (function SVGGraphicsClosure() {
|
||||||
|
|
||||||
// Path properties
|
// Path properties
|
||||||
setLineWidth: function SVGGraphics_setLineWidth(width) {
|
setLineWidth: function SVGGraphics_setLineWidth(width) {
|
||||||
|
if (width > 0) {
|
||||||
this.current.lineWidth = width;
|
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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue