Fixed issue 575 and issue 577 on trunk

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1599 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-06-16 13:16:00 +00:00
parent 58639c2ea2
commit e953bd9c78
2 changed files with 19 additions and 9 deletions

View File

@@ -279,6 +279,12 @@ function ChangeElementCommand(elem, attrs, text) {
if (this.elem.tagName == "title" && this.elem.parentNode.parentNode == svgcontent) {
identifyLayers();
}
// Remove transformlist to prevent confusion that causes bugs like 575.
if (svgTransformLists[this.elem.id]) {
delete svgTransformLists[this.elem.id];
}
return true;
};
@@ -5663,6 +5669,7 @@ function BatchCommand(text) {
batchCmd.addSubCommand(new ChangeElementCommand(elem, changes));
canvas.clearSelection();
this.resetOrientation(elem);
addCommandToHistory(batchCmd);
// Set matrix to null