From df3b22470c704f72866ad93ffadfdafff66b19e3 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Fri, 22 Jan 2010 01:47:50 +0000 Subject: [PATCH] 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 --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 3f55921e..34fea141 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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)); }