Commit 9e2587b7 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с выделением комментария, сразу после его добавления (баг 20420).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50313 954022d7-b5bf-4e40-9824-e11837661b57
parent 2965b88e
......@@ -377,16 +377,16 @@ Paragraph.prototype =
var LinesCount = this.Lines.length;
for ( var CurLine = 0; CurLine < LinesCount; CurLine++ )
{
if ( this.Lines[CurLine].StartPos >= Pos )
if ( this.Lines[CurLine].StartPos > Pos )
this.Lines[CurLine].StartPos++;
if ( this.Lines[CurLine].EndPos + 1 >= Pos )
if ( this.Lines[CurLine].EndPos + 1 > Pos )
this.Lines[CurLine].EndPos++;
var RangesCount = this.Lines[CurLine].Ranges.length;
for ( var CurRange = 0; CurRange < RangesCount; CurRange++ )
{
if ( this.Lines[CurLine].Ranges[CurRange].StartPos >= Pos )
if ( this.Lines[CurLine].Ranges[CurRange].StartPos > Pos )
this.Lines[CurLine].Ranges[CurRange].StartPos++;
}
}
......
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