Fix Issue 436: Only convert path d attribute for path elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1275 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
0671e1584e
commit
df3b22470c
|
@ -1075,7 +1075,7 @@ function BatchCommand(text) {
|
|||
if (allowedAttrs.indexOf(attrName) == -1) {
|
||||
node.removeAttribute(attrName);
|
||||
}
|
||||
if (attrName == 'd') {
|
||||
if (node.nodeName == 'path' && attrName == 'd') {
|
||||
// Convert to absolute
|
||||
node.setAttribute('d',pathActions.convertPath(node));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue