Commit 755a42cd 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@61457 954022d7-b5bf-4e40-9824-e11837661b57
parent 6882edb8
......@@ -199,6 +199,8 @@ function CBuilderImages(blip_fill, full_url, image_shape, sp_pr, ln)
CBuilderImages.prototype =
{
SetUrl : function(url)
{
if(url !== "error")
{
var oCopyFill, oCopyBlipFill, oCopyLn;
if(!this.Ln && this.SpPr && this.SpPr.Fill)
......@@ -224,6 +226,7 @@ CBuilderImages.prototype =
}
this.BlipFill.RasterImageId = url;
}
}
};
function BinaryPPTYLoader()
......@@ -1872,10 +1875,12 @@ function BinaryPPTYLoader()
case 3:
{
s.Skip2(6); // len + start attributes + type
uni_fill.fill.setRasterImageId(s.GetString2());
var sReadPath = s.GetString2();
uni_fill.fill.setRasterImageId(sReadPath);
// TEST version ---------------
var _s = uni_fill.fill.RasterImageId;
var _s = sReadPath;
var indS = _s.lastIndexOf("emf");
if (indS == -1)
indS = _s.lastIndexOf("wmf");
......@@ -1890,14 +1895,14 @@ function BinaryPPTYLoader()
if (this.IsThemeLoader)
{
uni_fill.fill.setRasterImageId("theme" + (this.Api.ThemeLoader.CurrentLoadThemeIndex + 1) + "/media/" + uni_fill.fill.RasterImageId);
uni_fill.fill.setRasterImageId("theme" + (this.Api.ThemeLoader.CurrentLoadThemeIndex + 1) + "/media/" + sReadPath);
}
if (this.ImageMapChecker != null)
this.ImageMapChecker[uni_fill.fill.RasterImageId] = true;
this.ImageMapChecker[sReadPath] = true;
if (this.IsUseFullUrl)
this.RebuildImages.push(new CBuilderImages(uni_fill.fill, uni_fill.fill.RasterImageId, oImageShape, oSpPr, oLn));
this.RebuildImages.push(new CBuilderImages(uni_fill.fill, sReadPath, oImageShape, oSpPr, oLn));
s.Skip2(1); // end attribute
break;
......
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