Commit 1c58f931 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49541 954022d7-b5bf-4e40-9824-e11837661b57
parent 7fdb09f3
...@@ -1862,17 +1862,34 @@ CShape.prototype = ...@@ -1862,17 +1862,34 @@ CShape.prototype =
graphics.SetIntegerGrid(true); graphics.SetIntegerGrid(true);
if ( this.txBody ) if ( this.txBody )
{ {
graphics.SetIntegerGrid(false);
graphics.transform3(this.transformText);
var clip_rect = this.clipRect; var clip_rect = this.clipRect;
//graphics.AddClipRect(clip_rect.x, clip_rect.y, clip_rect.w, clip_rect.h); if(!this.txBody.bodyPr.upright)
{
graphics.SaveGrState();
graphics.SetIntegerGrid(false);
graphics.transform3(this.transform);
graphics.AddClipRect(clip_rect.x, clip_rect.y, clip_rect.w, clip_rect.h);
graphics.SetIntegerGrid(false);
graphics.transform3(this.transformText, true);
}
else
{
graphics.SaveGrState();
graphics.SetIntegerGrid(false);
graphics.transform3(this.transformText, true);
graphics.AddClipRect(clip_rect.x, clip_rect.y, clip_rect.w, clip_rect.h);
}
this.txBody.draw(graphics); this.txBody.draw(graphics);
/* if (graphics.FreeFont !== undefined) /* if (graphics.FreeFont !== undefined)
graphics.FreeFont(); */ graphics.FreeFont(); */
graphics.reset(); graphics.reset();
// graphics.RestoreGrState(); graphics.RestoreGrState();
graphics.SetIntegerGrid(true); graphics.SetIntegerGrid(true);
} }
}, },
......
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