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-75d572ba1ddd
master
Jeff Schiller 2010-01-22 01:47:50 +00:00
parent 0671e1584e
commit df3b22470c
1 changed files with 1 additions and 1 deletions

View File

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