Commit 777102f5 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Кэшируем картинку для слайда при копировании

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59949 954022d7-b5bf-4e40-9824-e11837661b57
parent 8cb8136d
......@@ -117,6 +117,13 @@ Slide.prototype =
copy.applyTiming(this.timing.createDuplicate());
copy.setSlideSize(this.Width, this.Height);
if(!this.recalcInfo.recalculateBackground && !this.recalcInfo.recalculateSpTree)
{
copy.cachedImage = this.getBase64Img();
}
return copy;
},
......@@ -957,6 +964,7 @@ Slide.prototype =
this.recalculateSpTree();
this.recalcInfo.recalculateSpTree = false;
}
this.cachedImage = null;
},
recalculateBackground: function()
......@@ -1185,6 +1193,8 @@ Slide.prototype =
getBase64Img: function()
{
if(typeof this.cachedImage === "string" && this.cachedImage.length > 0)
return this.cachedImage;
return ShapeToImageConverter(this, 0).ImageUrl;
},
......
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