Possibly fixed issue 353

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1006 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-12-09 20:16:40 +00:00
parent 9279ba0a1d
commit 1986b452ed

View File

@@ -3597,12 +3597,12 @@ function BatchCommand(text) {
// set our current stroke/fill properties to the element's // set our current stroke/fill properties to the element's
var selected = selectedElements[0]; var selected = selectedElements[0];
if (selected.tagName != "g" && selected.tagName != "image") { if (selected.tagName != "g" && selected.tagName != "image") {
cur_shape.fill = selected.getAttribute("fill"); cur_properties.fill = selected.getAttribute("fill");
cur_shape.fill_opacity = selected.getAttribute("fill-opacity"); cur_properties.fill_opacity = selected.getAttribute("fill-opacity");
cur_shape.stroke = selected.getAttribute("stroke"); cur_properties.stroke = selected.getAttribute("stroke");
cur_shape.stroke_opacity = selected.getAttribute("stroke-opacity"); cur_properties.stroke_opacity = selected.getAttribute("stroke-opacity");
cur_shape.stroke_width = selected.getAttribute("stroke-width"); cur_properties.stroke_width = selected.getAttribute("stroke-width");
cur_shape.stroke_style = selected.getAttribute("stroke-dasharray"); cur_properties.stroke_style = selected.getAttribute("stroke-dasharray");
} }
if (selected.tagName == "text") { if (selected.tagName == "text") {
cur_text.font_size = selected.getAttribute("font-size"); cur_text.font_size = selected.getAttribute("font-size");