Commit 440c03fc 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@59145 954022d7-b5bf-4e40-9824-e11837661b57
parent eee88e83
......@@ -1941,15 +1941,16 @@ CDocument.prototype =
Y = Bounds.Bottom;
}
if ( docpostype_Content == this.CurPos.Type && Index >= this.ContentLastChangePos && Index == this.CurPos.ContentPos )
if ( docpostype_Content == this.CurPos.Type && Index >= this.ContentLastChangePos && Index === this.CurPos.ContentPos )
{
if ( type_Paragraph === Element.GetType() )
this.CurPage = Element.PageNum + Element.CurPos.PagesPos;
else
this.CurPage = Element.PageNum; // TODO: переделать
}
if (docpostype_Content === this.CurPos.Type && ((true !== this.Selection.Use && Index > this.CurPos.ContentPos) || (true === this.Selection.Use && Index > this.Selection.EndPos && Index > this.Selection.StartPos)))
this.private_UpdateCursorXY(true, true);
}
}
if ( Index >= Count )
......
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