From 8753c552f8d4891cf59a3bd48bea0c0e359ab595 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 16 Feb 2010 18:54:41 +0000 Subject: [PATCH] Fix Issue 478: markers, filters and clip paths now survive the conversion to path git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1394 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index e0f8d259..a51c7d6c 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -5331,6 +5331,15 @@ function BatchCommand(text) { "visibility":"hidden" }; + // any attribute on the element not covered by the above + // TODO: make this list global so that we can properly maintain it + // TODO: what about @transform, @clip-rule, @fill-rule, etc? + $.each(['marker-start', 'marker-end', 'marker-mid', 'filter', 'clip-path'], function() { + if (elem.getAttribute(this)) { + attrs[this] = elem.getAttribute(this); + } + }); + var path = addSvgElementFromJson({ "element": "path", "attr": attrs