Commit 8a30063e authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с определением количества отрезков обтекания. Исправлен баг в орфографии.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58160 954022d7-b5bf-4e40-9824-e11837661b57
parent 0c2a1f60
......@@ -57,7 +57,7 @@ CParagraphContentWithContentBase.prototype.protected_GetLinesCount = function()
CParagraphContentWithContentBase.prototype.protected_GetRangesCount = function(LineIndex)
{
if (LineIndex === this.Lines[0] - 1)
return (this.Lines.length - this.Lines[1 + LineIndex]) / 2;
return (this.Lines.length - this.Lines[1 + LineIndex] - (this.Lines[0] + 1)) / 2;
else
return (this.Lines[1 + LineIndex + 1] - this.Lines[1 + LineIndex]) / 2;
};
......
......@@ -941,12 +941,10 @@ ParaRun.prototype.Split2 = function(CurPos)
var MarkElement = Mark.Element;
if ( true === Mark.Start )
{
MarkElement.ClassesS[Mark.Depth] = NewRun;
MarkElement.StartPos.Data[Mark.Depth] -= CurPos;
}
else
{
MarkElement.ClassesE[Mark.Depth] = NewRun;
MarkElement.EndPos.Data[Mark.Depth] -= CurPos;
}
......
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