Fixed Issue 153: z-index of the clones is inverted when you clone several objects at once

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@518 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-09-01 14:14:19 +00:00
parent ee9ecb1960
commit 781cde5190
1 changed files with 2 additions and 2 deletions

View File

@ -2900,8 +2900,8 @@ function SvgCanvas(c)
this.cloneSelectedElements = function() {
var batchCmd = new BatchCommand("Clone Elements");
var copiedElements = [];
var len = selectedElements.length;
for (var i = 0; i < len; ++i) {
var i = selectedElements.length;
while(i--) {
var elem = selectedElements[i];
if (elem == null) break;
copiedElements.push(elem.cloneNode(true));