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

Поправила баг : на быстром пересчете при расчете макс ширины неправильно учитывался wrapIndent

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62829 954022d7-b5bf-4e40-9824-e11837661b57
parent ae4854c4
......@@ -215,7 +215,7 @@ CParaMathLineWidths.prototype.UpdateWidth = function(Line, W)
var bUpdMaxWidth = false;
var bNeedUpdate = bFastUpdate == false && Math.abs(this.Widths[CurLine] - W) < 0.00001;
var bNeedUpdate = bFastUpdate == false && Math.abs(this.Widths[CurLine] - W) > 0.00001;
this.Widths[CurLine] = W; // присваиваем до RecalcMaxMin
......@@ -420,7 +420,7 @@ CMathPageInfo.prototype.GetCurrentMaxWidthAllLines = function()
var wrapIndent = MathSettings.Get_WrapIndent(WrapState);
MaxW = FirstW + wrapIndent > MaxWOFirst ? FirstW + wrapIndent : MaxWOFirst;
MaxW = FirstW > wrapIndent + MaxWOFirst ? FirstW: MaxWOFirst + wrapIndent;
}
return MaxW;
......@@ -3124,7 +3124,6 @@ function CChangesMathEqArrayPr(NewPr, OldPr)
this.New = NewPr;
this.Old = OldPr;
}
CChangesMathEqArrayPr.prototype.Type = historyitem_Math_EqArrayPr;
CChangesMathEqArrayPr.prototype.Undo = function(Class)
{
......
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