Use global variable xlinkns. Fix tabbing/indentation.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@584 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1324,8 +1324,7 @@ function BatchCommand(text) {
|
|||||||
"opacity": cur_shape.opacity / 2
|
"opacity": cur_shape.opacity / 2
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var xlinkNS="http://www.w3.org/1999/xlink";
|
newImage.setAttributeNS(xlinkns, "href", "images/logo.png")
|
||||||
newImage.setAttributeNS(xlinkNS, "href", "images/logo.png")
|
|
||||||
break;
|
break;
|
||||||
case "square":
|
case "square":
|
||||||
// FIXME: once we create the rect, we lose information that this was a square
|
// FIXME: once we create the rect, we lose information that this was a square
|
||||||
@@ -2838,8 +2837,7 @@ function BatchCommand(text) {
|
|||||||
elem.textContent = newValue;
|
elem.textContent = newValue;
|
||||||
elem = canvas.quickClone(elem);
|
elem = canvas.quickClone(elem);
|
||||||
} else if (attr == "#href") {
|
} else if (attr == "#href") {
|
||||||
var xlinkNS="http://www.w3.org/1999/xlink";
|
elem.setAttributeNS(xlinkns, "href", newValue);
|
||||||
elem.setAttributeNS(xlinkNS, "href", newValue);
|
|
||||||
}
|
}
|
||||||
else elem.setAttribute(attr, newValue);
|
else elem.setAttribute(attr, newValue);
|
||||||
selectedBBoxes[i] = this.getBBox(elem);
|
selectedBBoxes[i] = this.getBBox(elem);
|
||||||
|
|||||||
Reference in New Issue
Block a user