Small fix to allow moving of multiple elements
git-svn-id: http://svg-edit.googlecode.com/svn/branches/transformlist@899 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
f2893ff847
commit
f9b4b0a647
|
@ -2422,10 +2422,14 @@ function BatchCommand(text) {
|
||||||
|
|
||||||
// update the dummy transform in our transform list
|
// update the dummy transform in our transform list
|
||||||
// to be a translate
|
// to be a translate
|
||||||
var tlist = canvas.getTransformList(selected);
|
|
||||||
var xform = svgroot.createSVGTransform();
|
var xform = svgroot.createSVGTransform();
|
||||||
|
var tlist = canvas.getTransformList(selected);
|
||||||
xform.setTranslate(dx,dy);
|
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
|
// update our internal bbox that we're tracking while dragging
|
||||||
selectorManager.requestSelector(selected).resize(box);
|
selectorManager.requestSelector(selected).resize(box);
|
||||||
|
|
Loading…
Reference in New Issue