Commit 4462e68f authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug with calculating document.

parent 7f5b4546
...@@ -2239,7 +2239,7 @@ CDocument.prototype.Recalculate_Page = function() ...@@ -2239,7 +2239,7 @@ CDocument.prototype.Recalculate_Page = function()
var MainStartPos = this.FullRecalc.MainStartPos; var MainStartPos = this.FullRecalc.MainStartPos;
if (null !== OldPage && ( -1 === MainStartPos || MainStartPos > StartIndex )) if (null !== OldPage && ( -1 === MainStartPos || MainStartPos > StartIndex ))
{ {
if (OldPage.EndPos >= Count - 1 && PageIndex - this.Content[Count - 1].Get_StartPage_Absolute() >= this.Content[Count - 1].Pages.length - 1) if (OldPage.EndPos >= Count - 1 && PageIndex - this.Content[Count - 1].Get_StartPage_Absolute() >= this.Content[Count - 1].GetPagesCount() - 1)
{ {
//console.log( "HdrFtr Recalc " + PageIndex ); //console.log( "HdrFtr Recalc " + PageIndex );
......
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