From 0e2243099364c594426a6f38c7b68cf1df61697c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 7 Nov 2012 01:02:28 -0800 Subject: [PATCH] Only set opacity and visibility when they differ from the defaults. --- src/svg/SvgExport.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/svg/SvgExport.js b/src/svg/SvgExport.js index f95b90c8..56d38f97 100644 --- a/src/svg/SvgExport.js +++ b/src/svg/SvgExport.js @@ -353,11 +353,11 @@ new function() { } }); - if (item._opacity != null) + if (item._opacity != null && item._opacity < 1) attrs.opacity = item._opacity; - if (item._visibility != null) - attrs._visibility = item._visibility ? 'visible' : 'hidden'; + if (item._visibility != null && !item._visibility) + attrs.visibility = 'hidden'; return setAttributes(svg, attrs); }