Fix foreignObject
Fix SVG-Edit Issue 503. Selecting a foreignObject was mistakenly setting the stroke to 'none'.
This commit is contained in:
parent
519f81ab20
commit
dcfe870a02
|
@ -3459,7 +3459,7 @@ function BatchCommand(text) {
|
||||||
if (selectedElements[1] == null) {
|
if (selectedElements[1] == null) {
|
||||||
// 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" && selected.tagName != "foreignObject") {
|
||||||
cur_properties.fill = selected.getAttribute("fill");
|
cur_properties.fill = selected.getAttribute("fill");
|
||||||
cur_properties.fill_opacity = selected.getAttribute("fill-opacity");
|
cur_properties.fill_opacity = selected.getAttribute("fill-opacity");
|
||||||
cur_properties.stroke = selected.getAttribute("stroke");
|
cur_properties.stroke = selected.getAttribute("stroke");
|
||||||
|
|
Loading…
Reference in a new issue