From 571887036f435fb8b08e329ba224403162a4b25e Mon Sep 17 00:00:00 2001 From: Stefan Kienzle Date: Fri, 19 Apr 2013 14:35:52 +0300 Subject: [PATCH] Bugfix object.opacity == 0 in svg output If object.opacity = 0 the svg output sets opacity to 1. --- src/object.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object.class.js b/src/object.class.js index 0417310c..ad769230 100644 --- a/src/object.class.js +++ b/src/object.class.js @@ -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(""); },