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