Merge pull request #71 from magnebra/ellipse_preserve_0_rx_ry
Preserve rx ry attributes on ellipse elements for batik compatibilitymaster
commit
bd55ce3bf5
|
@ -634,6 +634,12 @@ svgedit.utilities.cleanupElement = function(element) {
|
|||
'ry':0
|
||||
};
|
||||
|
||||
if (element.nodeName === 'ellipse') {
|
||||
// Ellipse elements requires rx and ry attributes
|
||||
delete defaults.rx;
|
||||
delete defaults.ry;
|
||||
}
|
||||
|
||||
var attr;
|
||||
for (attr in defaults) {
|
||||
var val = defaults[attr];
|
||||
|
|
Loading…
Reference in New Issue