Minor fixes to last revision

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1101 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-12-23 17:38:51 +00:00
parent 6d2f6e8270
commit d6f66bfcf3
1 changed files with 3 additions and 4 deletions

View File

@ -142,8 +142,7 @@ function ChangeElementCommand(elem, attrs, text) {
if (attr == "transform") { bChangedTransform = true; } if (attr == "transform") { bChangedTransform = true; }
} }
// relocate rotational transform, if necessary // relocate rotational transform, if necessary
if(!bChangedTransform && elem.tagName != 'svg') { if(!bChangedTransform) {
var angle = canvas.getRotationAngle(elem); var angle = canvas.getRotationAngle(elem);
if (angle) { if (angle) {
var bbox = elem.getBBox(); var bbox = elem.getBBox();
@ -5039,8 +5038,8 @@ function BatchCommand(text) {
dy.push(bbox.y*-1); dy.push(bbox.y*-1);
}); });
var bCmd = canvas.moveSelectedElements(dx, dy, true); var cmd = canvas.moveSelectedElements(dx, dy, true);
batchCmd.addSubCommand(bCmd); batchCmd.addSubCommand(cmd);
canvas.clearSelection(); canvas.clearSelection();
x = Math.round(bbox.width); x = Math.round(bbox.width);