From bf280af753ae8987eadfd5b86fec352aae3b4ad5 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 31 Aug 2009 18:52:59 +0000 Subject: [PATCH] Fixed Issue 143: Opera 10 on Windows XP stopped rendering clones of objects with opacity different from 100% git-svn-id: http://svg-edit.googlecode.com/svn/trunk@510 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 6e1414be..22c6f1be 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -774,6 +774,10 @@ function SvgCanvas(c) for (i=attrs.length-1; i>=0; i--) { attr = attrs.item(i); if (attr.nodeValue != "") { + //Opera bug turns N.N to N,N in some locales + if(window.opera && attr.nodeName == 'opacity' && /^\d+,\d+$/.test(attr.nodeValue)) { + attr.nodeValue = attr.nodeValue.replace(',','.'); + } out.push(" "); out.push(attr.nodeName); out.push("=\""); out.push(attr.nodeValue); out.push("\""); }