Commit 4b046c5c authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

hatch на табнейлах

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60276 954022d7-b5bf-4e40-9824-e11837661b57
parent e25a042f
...@@ -531,11 +531,14 @@ CGraphics.prototype = ...@@ -531,11 +531,14 @@ CGraphics.prototype =
this.TextureFillTransformScaleX = 1 / this.m_oCoordTransform.sx; this.TextureFillTransformScaleX = 1 / this.m_oCoordTransform.sx;
this.TextureFillTransformScaleY = 1 / this.m_oCoordTransform.sy; this.TextureFillTransformScaleY = 1 / this.m_oCoordTransform.sy;
/*
if (this.IsThumbnail) if (this.IsThumbnail)
{ {
this.TextureFillTransformScaleX *= (width_px / (width_mm * g_dKoef_mm_to_pix)); this.TextureFillTransformScaleX *= (width_px / (width_mm * g_dKoef_mm_to_pix));
this.TextureFillTransformScaleY *= (height_px / (height_mm * g_dKoef_mm_to_pix)) this.TextureFillTransformScaleY *= (height_px / (height_mm * g_dKoef_mm_to_pix))
} }
*/
/* /*
if (true == this.m_oContext.mozImageSmoothingEnabled) if (true == this.m_oContext.mozImageSmoothingEnabled)
......
...@@ -977,6 +977,11 @@ CShapeDrawer.prototype = ...@@ -977,6 +977,11 @@ CShapeDrawer.prototype =
var koefX = editor.WordControl.m_nZoomValue / 100; var koefX = editor.WordControl.m_nZoomValue / 100;
var koefY = editor.WordControl.m_nZoomValue / 100; var koefY = editor.WordControl.m_nZoomValue / 100;
if (this.Graphics.IsThumbnail)
{
koefX = 1;
koefY = 1;
}
// TODO: !!! // TODO: !!!
_ctx.translate(this.min_x, this.min_y); _ctx.translate(this.min_x, this.min_y);
......
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