Commit 2d15b362 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47257 954022d7-b5bf-4e40-9824-e11837661b57
parent fc2cf412
...@@ -562,6 +562,30 @@ function CDocMeta() ...@@ -562,6 +562,30 @@ function CDocMeta()
{ {
// drawImage // drawImage
var _type = s.GetUChar(); 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 _src = (0 == _type) ? (this.DocumentUrl + "media/image" + s.GetLong() + ".jpg") : (this.DocumentUrl + "media/image" + s.GetLong() + ".png");
var __x = s.GetDouble(); var __x = s.GetDouble();
......
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