Merge pull request #71 from magnebra/ellipse_preserve_0_rx_ry

Preserve rx ry attributes on ellipse elements for batik compatibility
master
Philip Rogers 2016-02-26 08:21:01 -08:00
commit bd55ce3bf5
1 changed files with 6 additions and 0 deletions

View File

@ -634,6 +634,12 @@ svgedit.utilities.cleanupElement = function(element) {
'ry':0 'ry':0
}; };
if (element.nodeName === 'ellipse') {
// Ellipse elements requires rx and ry attributes
delete defaults.rx;
delete defaults.ry;
}
var attr; var attr;
for (attr in defaults) { for (attr in defaults) {
var val = defaults[attr]; var val = defaults[attr];