mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Merge pull request #10330 from janpe2/svg-line-width-zero
Handle line width of zero in SVG
This commit is contained in:
commit
45c0197465
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue