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() {
|
this.cloneSelectedElements = function() {
|
||||||
var batchCmd = new BatchCommand("Clone Elements");
|
var batchCmd = new BatchCommand("Clone Elements");
|
||||||
var copiedElements = [];
|
var copiedElements = [];
|
||||||
var len = selectedElements.length;
|
var i = selectedElements.length;
|
||||||
for (var i = 0; i < len; ++i) {
|
while(i--) {
|
||||||
var elem = selectedElements[i];
|
var elem = selectedElements[i];
|
||||||
if (elem == null) break;
|
if (elem == null) break;
|
||||||
copiedElements.push(elem.cloneNode(true));
|
copiedElements.push(elem.cloneNode(true));
|
||||||
|
|
Loading…
Reference in New Issue