Commit cd51d194 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix bug with copy elements from internal groups

parent bfee844a
...@@ -5958,11 +5958,13 @@ function collectSelectedObjects(aSpTree, aCollectArray, bRecursive, oIdMap) ...@@ -5958,11 +5958,13 @@ function collectSelectedObjects(aSpTree, aCollectArray, bRecursive, oIdMap)
} }
aCollectArray.push(new DrawingCopyObject(oCopy, aSpTree[i].x, aSpTree[i].y, aSpTree[i].extX, aSpTree[i].extY, aSpTree[i].getBase64Img())); aCollectArray.push(new DrawingCopyObject(oCopy, aSpTree[i].x, aSpTree[i].y, aSpTree[i].extX, aSpTree[i].extY, aSpTree[i].getBase64Img()));
oIdMap[aSpTree[i].Id] = oCopy.Id; if(AscCommon.isRealObject(oIdMap)){
oIdMap[aSpTree[i].Id] = oCopy.Id;
}
} }
if(bRecursive && aSpTree[i].getObjectType() === AscDFH.historyitem_type_GroupShape) if(bRecursive && aSpTree[i].getObjectType() === AscDFH.historyitem_type_GroupShape)
{ {
collectSelectedObjects(aSpTree[i].spTree, aCollectArray, bRecursive); collectSelectedObjects(aSpTree[i].spTree, aCollectArray, bRecursive, oIdMap);
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment