git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47257 954022d7-b5bf-4e40-9824-e11837661b57

This commit is contained in:
Oleg.Korshul
2013-06-14 06:22:45 +00:00
committed by Alexander.Trofimov
parent fc2cf4128d
commit 2d15b36204

View File

@ -562,6 +562,30 @@ function CDocMeta()
{
// drawImage
var _type = s.GetUChar();
if (2 == _type)
{
var _src = this.DocumentUrl + "media/image" + s.GetLong() + ".svg";
obj.StreamPos = s.pos;
var img = new Image();
img.onload = function(){
if (1 != obj.BreakDrawing)
{
g.drawImage2(img, 0, 0, page.width_mm, page.height_mm);
}
oThisDoc.OnImageLoad(obj);
};
img.onerror = function(){
oThisDoc.OnImageLoad(obj);
};
img.src = _src;
return;
}
var _src = (0 == _type) ? (this.DocumentUrl + "media/image" + s.GetLong() + ".jpg") : (this.DocumentUrl + "media/image" + s.GetLong() + ".png");
var __x = s.GetDouble();