Fixed issue 559: Polyline doesn't rotate correctly in safari and chrome. Also made undo/redo work better for markers
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1589 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -301,10 +301,16 @@ svgEditor.addExtension("Markers", function(S) {
|
||||
var m = elem.getAttribute(nam);
|
||||
if (m) pline.setAttribute(nam,elem.getAttribute(nam));
|
||||
});
|
||||
|
||||
var batchCmd = new S.BatchCommand();
|
||||
batchCmd.addSubCommand(new S.RemoveElementCommand(elem, elem.parentNode));
|
||||
batchCmd.addSubCommand(new S.InsertElementCommand(pline));
|
||||
|
||||
$(elem).after(pline).remove();
|
||||
svgCanvas.clearSelection();
|
||||
pline.id = id;
|
||||
svgCanvas.addToSelection([pline]);
|
||||
S.addCommandToHistory(batchCmd);
|
||||
return pline;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user