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
This commit is contained in:
@@ -1075,7 +1075,7 @@ function BatchCommand(text) {
|
|||||||
if (allowedAttrs.indexOf(attrName) == -1) {
|
if (allowedAttrs.indexOf(attrName) == -1) {
|
||||||
node.removeAttribute(attrName);
|
node.removeAttribute(attrName);
|
||||||
}
|
}
|
||||||
if (attrName == 'd') {
|
if (node.nodeName == 'path' && attrName == 'd') {
|
||||||
// Convert to absolute
|
// Convert to absolute
|
||||||
node.setAttribute('d',pathActions.convertPath(node));
|
node.setAttribute('d',pathActions.convertPath(node));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user