Commit 453a8991 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 30674 - [Formula] При вставке формулы в textart часть элементов рисуется как линия а не контур

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67120 954022d7-b5bf-4e40-9824-e11837661b57
parent b9dd0ea4
......@@ -1720,8 +1720,25 @@ CTextDrawer.prototype =
}
},
// smart methods for horizontal / vertical lines
drawHorLine : function(align, y, x, r, penW)
drawHorLine : function(align, y, x, r, penW, bMath)
{
if(bMath)
{
// this.p_width(penW * 1000);
var oTextPr = this.GetTextPr();
var bResetTextPr = false, dW = null;
if(oTextPr && oTextPr.TextOutline && isRealNumber(oTextPr.TextOutline.w))
{
bResetTextPr = true;
dW = oTextPr.TextOutline.w;
oTextPr.TextOutline.w = 36000.0 * penW >> 0;
}
this._s();
this._m(x, y);
this._l(r, y);
this.ds();
return;
}
this._s();
this._m(x, y);
......
......@@ -228,13 +228,7 @@ CBorderBox.prototype.Draw_Elements = function(PDSE)
var oCompiledPr = this.Get_CompiledCtrPrp();
this.Make_ShdColor(PDSE, oCompiledPr);
var oTextOutline = oCompiledPr.TextOutline;
if(PDSE.Graphics.Start_Command) // textArt
{
oCompiledPr.TextOutline = null;
PDSE.Graphics.SetTextPr(oCompiledPr, PDSE.Theme);
}
if(!this.Pr.hideTop)
{
......@@ -242,7 +236,7 @@ CBorderBox.prototype.Draw_Elements = function(PDSE)
x2 = X + Width,
y1 = Y;
PDSE.Graphics.drawHorLine(0, y1, x1, x2, penW);
PDSE.Graphics.drawHorLine(0, y1, x1, x2, penW, true);
}
if(!this.Pr.hideBot)
......@@ -251,7 +245,7 @@ CBorderBox.prototype.Draw_Elements = function(PDSE)
x2 = X + Width,
y1 = Y + Height;
PDSE.Graphics.drawHorLine(2, y1, x1, x2, penW);
PDSE.Graphics.drawHorLine(2, y1, x1, x2, penW, true);
}
if(!this.Pr.hideLeft)
......@@ -260,7 +254,7 @@ CBorderBox.prototype.Draw_Elements = function(PDSE)
y1 = Y,
y2 = Y + Height;
PDSE.Graphics.drawVerLine(0, x1, y1, y2, penW);
PDSE.Graphics.drawVerLine(0, x1, y1, y2, penW, true);
}
if(!this.Pr.hideRight)
......@@ -269,7 +263,7 @@ CBorderBox.prototype.Draw_Elements = function(PDSE)
y1 = Y,
y2 = Y + Height;
PDSE.Graphics.drawVerLine(2, x1, y1, y2, penW);
PDSE.Graphics.drawVerLine(2, x1, y1, y2, penW, true);
}
if(this.Pr.strikeTLBR) // left diagonal
......@@ -368,13 +362,10 @@ CBorderBox.prototype.Draw_Elements = function(PDSE)
y1 = Y,
y2 = Y + Height;
PDSE.Graphics.drawVerLine(0, x1, y1, y2, penW);
PDSE.Graphics.drawVerLine(0, x1, y1, y2, penW, true);
}
PDSE.X = _X + this.size.width;
oCompiledPr.TextOutline = oTextOutline; // меняем обратно, чтобы не изменились скомпилированные текстовые настройки
};
CBorderBox.prototype.setPosition = function(pos, PosInfo)
{
......
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