Commit 2785e3e7 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Поправила баг, связанный с переносом скобки

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63416 954022d7-b5bf-4e40-9824-e11837661b57
parent 11ee4a70
......@@ -2324,8 +2324,6 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
}
else
{
bInsideOper = true;
var bOperBefore = this.ParaMath.Is_BrkBinBefore() == true;
var WorLenCompareOper = WordLen + X - XRange + (bOperBefore ? SpaceLen : BrkLen);
......@@ -2357,6 +2355,8 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
}
else
{
bInsideOper = true;
if(Word == true)
{
X += SpaceLen + WordLen;
......@@ -2405,6 +2405,8 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
}
else
{
bInsideOper = true;
// осуществляем здесь, чтобы не изменить GapRight в случае, когда новое слово не убирается на break_Operator
OperGapRight = Item.GapRight;
......
......@@ -885,8 +885,6 @@ CDegreeSubSup.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
var RangeStartPos = this.protected_AddRange(CurLine, CurRange),
RangeEndPos = 0;
//this.VerifyWordLen(PRS);
if(CurLine == 0 && CurRange == 0)
{
PRS.WordLen += this.BrGapLeft;
......
......@@ -3454,8 +3454,6 @@ CDelimiter.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
var Content = this.Content[0];
//this.VerifyWordLen(PRS);
if(CurLine == 0 && CurRange == 0)
{
// посчитаем контент как одностроковый для вычисления размера скобок
......@@ -3465,6 +3463,9 @@ CDelimiter.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
var WordLen = PRS.WordLen,
SpaceLen = PRS.SpaceLen;
//
Content.Recalculate_Reset(PRS.Range, PRS.Line, PRS);
Content.Recalculate_Range(PRS, ParaPr, Depth + 1);
this.RecalculateGeneralSize(g_oTextMeasurer, Content.size.height, Content.size.ascent);
......@@ -3472,9 +3473,6 @@ CDelimiter.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
this.BrGapLeft = this.GapLeft + this.begOper.size.width;
this.BrGapRight = this.GapRight + this.endOper.size.width;
//
Content.Recalculate_Reset(PRS.Range, PRS.Line, PRS);
PRS.WordLen = WordLen + this.BrGapLeft;
PRS.SpaceLen = SpaceLen;
}
......
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