From 4989d74a63a4e49b1264ca21c7cdb6bcc5334617 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 4 Jan 2010 13:46:41 +0000 Subject: [PATCH] Fixed Issue 386: Can't move a group of 9 objects or more with the mouse git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1139 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index c810b8f8..b8032829 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2083,8 +2083,8 @@ function BatchCommand(text) { } }); - // Make sure null value is at the end - if(!selectedElements[0]) selectedElements.push(selectedElements.shift()); + // Make sure first elements are not null + while(selectedElements[0] == null) selectedElements.shift(0); };