Commit 400d623a authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

getBase64Image

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60020 954022d7-b5bf-4e40-9824-e11837661b57
parent 0e2f02f9
...@@ -1796,23 +1796,7 @@ CChartSpace.prototype = ...@@ -1796,23 +1796,7 @@ CChartSpace.prototype =
this.group = group; this.group = group;
}, },
getBase64Img: function () getBase64Img: CShape.prototype.getBase64Img,
{
if(typeof this.cachedImage === "string")
{
return this.cachedImage;
}
var img_object = ShapeToImageConverter(this, this.pageIndex);
if(img_object)
{
return img_object.ImageUrl;
}
else
{
return "";
}
},
getRangeObjectStr: function() getRangeObjectStr: function()
{ {
......
...@@ -262,23 +262,7 @@ CGroupShape.prototype = ...@@ -262,23 +262,7 @@ CGroupShape.prototype =
return getBoundsInGroup(this); return getBoundsInGroup(this);
}, },
getBase64Img: function () getBase64Img: CShape.prototype.getBase64Img,
{
if(typeof this.cachedImage === "string")
{
return this.cachedImage;
}
var img_object = ShapeToImageConverter(this, this.pageIndex);
if(img_object)
{
return img_object.ImageUrl;
}
else
{
return "";
}
},
convertToWord: function(document) convertToWord: function(document)
{ {
......
...@@ -346,23 +346,7 @@ CImageShape.prototype = ...@@ -346,23 +346,7 @@ CImageShape.prototype =
return false; return false;
}, },
getBase64Img: function () getBase64Img: CShape.prototype.getBase64Img,
{
if(typeof this.cachedImage === "string")
{
return this.cachedImage;
}
var img_object = ShapeToImageConverter(this, this.pageIndex);
if(img_object)
{
return img_object.ImageUrl;
}
else
{
return "";
}
},
convertToWord: function(document) convertToWord: function(document)
{ {
......
...@@ -2638,6 +2638,8 @@ CShape.prototype = ...@@ -2638,6 +2638,8 @@ CShape.prototype =
{ {
return this.cachedImage; return this.cachedImage;
} }
if(!isRealNumber(this.x) || !isRealNumber(this.y) || !isRealNumber(this.extX) || !isRealNumber(this.extY))
return "";
var img_object = ShapeToImageConverter(this, this.pageIndex); var img_object = ShapeToImageConverter(this, this.pageIndex);
if(img_object) if(img_object)
{ {
......
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