Commit 28252a24 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Сделано, чтобы хождение по изменениям в рецензировании зацикливалось.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66144 954022d7-b5bf-4e40-9824-e11837661b57
parent 4dea93cd
......@@ -139,16 +139,22 @@ CDocument.prototype.private_GetRevisionsChangeParagraph = function(Direction, Cu
{
this.private_GetRevisionsChangeParagraphInHdrFtr(SearchEngine, HdrFtr);
if (Direction < 0 && true !== SearchEngine.Is_Found())
this.private_GetRevisionsChangeParagraphInDocument(SearchEngine, this.Content.length - 1);
if (true !== SearchEngine.Is_Found())
this.private_GetRevisionsChangeParagraphInDocument(SearchEngine, Direction < 0 ? this.Content.length - 1 : 0);
if (true !== SearchEngine.Is_Found())
this.private_GetRevisionsChangeParagraphInHdrFtr(SearchEngine, null);
}
else
{
var Pos = (true === this.Selection.Use && docpostype_DrawingObjects !== this.CurPos.Type ? (this.Selection.StartPos <= this.Selection.EndPos ? this.Selection.StartPos : this.Selection.EndPos) : this.CurPos.ContentPos);
this.private_GetRevisionsChangeParagraphInDocument(SearchEngine, Pos);
if (Direction > 0 && true !== SearchEngine.Is_Found())
if (true !== SearchEngine.Is_Found())
this.private_GetRevisionsChangeParagraphInHdrFtr(SearchEngine, null);
if (true !== SearchEngine.Is_Found())
this.private_GetRevisionsChangeParagraphInDocument(SearchEngine, Direction > 0 ? 0 : this.Content.length - 1);
}
return SearchEngine;
......
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