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

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

Поправила баг, связанный с рачетом ширины строки на Recalculate_Range и соответствующим выравниванием

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62295 954022d7-b5bf-4e40-9824-e11837661b57
parent 01eb8819
...@@ -2210,6 +2210,9 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) ...@@ -2210,6 +2210,9 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
} }
else if(Word == true) else if(Word == true)
{ {
if(X + WordLen + SpaceLen > XEnd) // FirstItemOnLine == true
bMathWordLarge = true;
X += SpaceLen + WordLen; X += SpaceLen + WordLen;
PRS.Set_LineBreakPos(Pos); PRS.Set_LineBreakPos(Pos);
EmptyLine = false; EmptyLine = false;
...@@ -2241,6 +2244,9 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) ...@@ -2241,6 +2244,9 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
} }
else else
{ {
if(X + WordLen + BrkLen > XEnd) // FirstItemOnLine == true
bMathWordLarge = true;
X += BrkLen + WordLen; X += BrkLen + WordLen;
EmptyLine = false; EmptyLine = false;
......
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