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-75d572ba1dddmaster
parent
ee9ecb1960
commit
781cde5190
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue