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-75d572ba1dddmaster
parent
c53ad929c6
commit
bf280af753
|
@ -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("\"");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue