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

miterlimit overlay bug

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57787 954022d7-b5bf-4e40-9824-e11837661b57
parent 41ee2f0c
...@@ -38,6 +38,7 @@ function COverlay() ...@@ -38,6 +38,7 @@ function COverlay()
this.m_oHtmlPage = null; this.m_oHtmlPage = null;
this.DashLineColor = "#000000"; this.DashLineColor = "#000000";
this.ClearAll = false;
} }
COverlay.prototype = COverlay.prototype =
...@@ -57,7 +58,16 @@ COverlay.prototype = ...@@ -57,7 +58,16 @@ COverlay.prototype =
this.m_oContext.beginPath(); this.m_oContext.beginPath();
if (this.max_x != -0xFFFF && this.max_y != -0xFFFF) if (this.max_x != -0xFFFF && this.max_y != -0xFFFF)
{ {
this.m_oContext.clearRect(this.min_x - 5, this.min_y - 5, this.max_x - this.min_x + 10, this.max_y - this.min_y + 10); if (this.ClearAll === true)
{
this.m_oContext.clearRect(0, 0, this.m_oControl.HtmlElement.width, this.m_oControl.HtmlElement.height);
this.ClearAll = false;
}
else
{
var _eps = 5;
this.m_oContext.clearRect(this.min_x - _eps, this.min_y - _eps, this.max_x - this.min_x + 2*_eps, this.max_y - this.min_y + 2*_eps);
}
} }
this.min_x = 0xFFFF; this.min_x = 0xFFFF;
this.min_y = 0xFFFF; this.min_y = 0xFFFF;
......
...@@ -1258,6 +1258,9 @@ CShapeDrawer.prototype = ...@@ -1258,6 +1258,9 @@ CShapeDrawer.prototype =
drawFillStroke : function(bIsFill, fill_mode, bIsStroke) drawFillStroke : function(bIsFill, fill_mode, bIsStroke)
{ {
if (this.Graphics.IsTrack)
this.Graphics.m_oOverlay.ClearAll = true;
if(this.Graphics.IsSlideBoundsCheckerType) if(this.Graphics.IsSlideBoundsCheckerType)
return; return;
if (this.Graphics.RENDERER_PDF_FLAG === undefined) if (this.Graphics.RENDERER_PDF_FLAG === undefined)
......
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