Bugfix object.opacity == 0 in svg output

If object.opacity = 0 the svg output sets opacity to 1.
This commit is contained in:
Stefan Kienzle 2013-04-19 14:35:52 +03:00
parent e56d37d9da
commit 571887036f

View file

@ -495,7 +495,7 @@
"stroke-width: ", (this.strokeWidth ? this.strokeWidth : '0'), "; ",
"stroke-dasharray: ", (this.strokeDashArray ? this.strokeDashArray.join(' ') : "; "),
"fill: ", (this.fill ? (this.fill && this.fill.toLive ? 'url(#SVGID_' + this.fill.id + ')' : this.fill) : 'none'), "; ",
"opacity: ", (this.opacity ? this.opacity : '1'), ";",
"opacity: ", (typeof this.opacity !== 'undefined' ? this.opacity : '1'), ";",
(this.visible ? '' : " visibility: hidden;")
].join("");
},