From dcfe870a02d84e5ed59c6a54494f2c9324d4292c Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sat, 27 Feb 2010 16:39:57 -0600 Subject: [PATCH] Fix foreignObject Fix SVG-Edit Issue 503. Selecting a foreignObject was mistakenly setting the stroke to 'none'. --- public/svg-edit/editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/svg-edit/editor/svgcanvas.js b/public/svg-edit/editor/svgcanvas.js index 9728b1a7..08b9a555 100644 --- a/public/svg-edit/editor/svgcanvas.js +++ b/public/svg-edit/editor/svgcanvas.js @@ -3459,7 +3459,7 @@ function BatchCommand(text) { if (selectedElements[1] == null) { // set our current stroke/fill properties to the element's var selected = selectedElements[0]; - if (selected.tagName != "g" && selected.tagName != "image") { + if (selected.tagName != "g" && selected.tagName != "image" && selected.tagName != "foreignObject") { cur_properties.fill = selected.getAttribute("fill"); cur_properties.fill_opacity = selected.getAttribute("fill-opacity"); cur_properties.stroke = selected.getAttribute("stroke");