Commit 96315aac authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35024

parent bb0e442a
......@@ -4621,8 +4621,10 @@ CPresentation.prototype =
var selected_slides = editor.WordControl.Thumbnails.GetSelectedArray();
for(i = 0; i < selected_slides.length; ++i)
{
ret.SlideObjects.push(new SlideCopyObject(this.Slides[selected_slides[i]].createDuplicate(), this.Slides[selected_slides[i]].getBase64Img()));
oIdMap = {};
var oSlideCopy = this.Slides[selected_slides[i]].createDuplicate(oIdMap);
ret.SlideObjects.push(new SlideCopyObject(oSlideCopy, this.Slides[selected_slides[i]].getBase64Img()));
AscFormat.fResetConnectorsIds(oSlideCopy.cSld.spTree, oIdMap);
}
}
}
......@@ -5189,7 +5191,10 @@ CPresentation.prototype =
{
for(i = array.length -1; i > - 1; --i)
{
deleted.push(this.Slides[array[i]].createDuplicate());
var oIdMap = {};
var oSlideCopy = this.Slides[array[i]].createDuplicate(oIdMap);
AscFormat.fResetConnectorsIds(oSlideCopy.cSld.spTree, oIdMap);
deleted.push(oSlideCopy);
}
}
......
......@@ -245,9 +245,9 @@ Slide.prototype =
}
},
createDuplicate: function()
createDuplicate: function(IdMap)
{
var oIdMap = {};
var oIdMap = IdMap || {};
var copy = new Slide(this.presentation, this.Layout, 0), i;
if(typeof this.cSld.name === "string" && this.cSld.name.length > 0)
{
......
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