Commit 2e6badb8 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

записываем высоту и ширину картинки при копировании

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65122 954022d7-b5bf-4e40-9824-e11837661b57
parent bee7cf27
......@@ -1171,6 +1171,8 @@ CChartSpace.prototype =
copy.setThemeOverride(this.themeOverride);
copy.setBDeleted(this.bDeleted);
copy.cachedImage = this.getBase64Img();
copy.cachedPixH = this.cachedPixH;
copy.cachedPixW = this.cachedPixW;
return copy;
},
......
......@@ -243,6 +243,8 @@ CGroupShape.prototype =
}
copy.setBDeleted(this.bDeleted);
copy.cachedImage = this.getBase64Img();
copy.cachedPixH = this.cachedPixH;
copy.cachedPixW = this.cachedPixW;
return copy;
},
......
......@@ -123,6 +123,8 @@ CImageShape.prototype =
}
copy.setBDeleted(this.bDeleted);
copy.cachedImage = this.getBase64Img();
copy.cachedPixH = this.cachedPixH;
copy.cachedPixW = this.cachedPixW;
return copy;
},
......
......@@ -2008,6 +2008,8 @@ CShape.prototype =
copy.setWordShape(this.bWordShape);
copy.setBDeleted(this.bDeleted);
copy.cachedImage = this.getBase64Img();
copy.cachedPixH = this.cachedPixH;
copy.cachedPixW = this.cachedPixW;
return copy;
},
......@@ -3488,6 +3490,19 @@ CShape.prototype =
var img_object = ShapeToImageConverter(this, this.pageIndex);
if(img_object)
{
if(img_object.ImageNative)
{
try
{
this.cachedPixW = img_object.ImageNative.width;
this.cachedPixH = img_object.ImageNative.height;
}
catch(e)
{
this.cachedPixW = 50;
this.cachedPixH = 50;
}
}
return img_object.ImageUrl;
}
else
......
......@@ -215,6 +215,8 @@ CGraphicFrame.prototype =
if(!this.recalcInfo.recalculateTable && !this.recalcInfo.recalculateSizes && !this.recalcInfo.recalculateTransform)
{
ret.cachedImage = this.getBase64Img();
ret.cachedPixW = this.cachedPixW;
ret.cachedPixH = this.cachedPixH;
}
return ret;
},
......
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