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
|
// 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];
|
||||||
|
Loading…
Reference in New Issue
Block a user