From cf4e09731605b8c09aec87e3d46fcd369e8de6d3 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sat, 27 Feb 2010 22:46:20 +0000 Subject: [PATCH] Fix issue 503. git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1435 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 a9b4156d..8920c88e 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -3450,7 +3450,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");