Small fix to allow moving of multiple elements

git-svn-id: http://svg-edit.googlecode.com/svn/branches/transformlist@899 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-11-03 14:27:33 +00:00
parent f2893ff847
commit f9b4b0a647
1 changed files with 6 additions and 2 deletions

View File

@ -2422,10 +2422,14 @@ function BatchCommand(text) {
// update the dummy transform in our transform list
// to be a translate
var tlist = canvas.getTransformList(selected);
var xform = svgroot.createSVGTransform();
var tlist = canvas.getTransformList(selected);
xform.setTranslate(dx,dy);
tlist.replaceItem(xform, 0);
if(tlist.numberOfItems) {
tlist.replaceItem(xform, 0);
} else {
tlist.appendItem(xform);
}
// update our internal bbox that we're tracking while dragging
selectorManager.requestSelector(selected).resize(box);