Commit 46220c04 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@58237 954022d7-b5bf-4e40-9824-e11837661b57
parent e8ded6c2
...@@ -2943,7 +2943,7 @@ function CEditorPage(api) ...@@ -2943,7 +2943,7 @@ function CEditorPage(api)
return; return;
var master = this.m_oLogicDocument.Slides[this.m_oDrawingDocument.SlideCurrent].Layout.Master; var master = this.m_oLogicDocument.Slides[this.m_oDrawingDocument.SlideCurrent].Layout.Master;
if (this.MasterLayouts != master || bIsAttack === true) if (this.MasterLayouts != master || Math.abs(this.m_oLayoutDrawer.WidthMM - this.m_oLogicDocument.Width) < MOVE_DELTA || Math.abs(this.m_oLayoutDrawer.HeightMM - this.m_oLogicDocument.Height) < MOVE_DELTA || bIsAttack === true)
{ {
this.MasterLayouts = master; this.MasterLayouts = master;
...@@ -2961,8 +2961,10 @@ function CEditorPage(api) ...@@ -2961,8 +2961,10 @@ function CEditorPage(api)
arr[i].Name = master.sldLayoutLst[i].cSld.name; arr[i].Name = master.sldLayoutLst[i].cSld.name;
if ("" == master.sldLayoutLst[i].ImageBase64) if ("" == master.sldLayoutLst[i].ImageBase64 || Math.abs(this.m_oLayoutDrawer.WidthMM - this.m_oLogicDocument.Width) < MOVE_DELTA || Math.abs(this.m_oLayoutDrawer.HeightMM - this.m_oLogicDocument.Height) < MOVE_DELTA)
{ {
this.m_oLayoutDrawer.WidthMM = this.m_oLogicDocument.Width;
this.m_oLayoutDrawer.HeightMM = this.m_oLogicDocument.Height;
master.sldLayoutLst[i].ImageBase64 = this.m_oLayoutDrawer.GetThumbnail(master.sldLayoutLst[i]); master.sldLayoutLst[i].ImageBase64 = this.m_oLayoutDrawer.GetThumbnail(master.sldLayoutLst[i]);
master.sldLayoutLst[i].Width64 = this.m_oLayoutDrawer.WidthPx; master.sldLayoutLst[i].Width64 = this.m_oLayoutDrawer.WidthPx;
master.sldLayoutLst[i].Height64 = this.m_oLayoutDrawer.HeightPx; master.sldLayoutLst[i].Height64 = this.m_oLayoutDrawer.HeightPx;
......
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