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
master
Alexis Deveria 2009-08-31 18:52:59 +00:00
parent c53ad929c6
commit bf280af753
1 changed files with 4 additions and 0 deletions

View File

@ -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("\"");
}