Commit acee7d85 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #35138

parent 117ac5d0
...@@ -3463,7 +3463,7 @@ CDocument.prototype.private_RecalculateHdrFtrPageCountUpdate = function() ...@@ -3463,7 +3463,7 @@ CDocument.prototype.private_RecalculateHdrFtrPageCountUpdate = function()
{ {
this.HdrFtrRecalc.Id = null; this.HdrFtrRecalc.Id = null;
var nPageAbs = this.HdrFtrRecalc.PageIndex; var nPageAbs = this.HdrFtrRecalc.PageIndex;
var nPagesCount = this.Pages.length; var nPagesCount = this.Pages.length;
while (nPageAbs < nPagesCount) while (nPageAbs < nPagesCount)
...@@ -3484,7 +3484,7 @@ CDocument.prototype.private_RecalculateHdrFtrPageCountUpdate = function() ...@@ -3484,7 +3484,7 @@ CDocument.prototype.private_RecalculateHdrFtrPageCountUpdate = function()
else else
{ {
this.HdrFtrRecalc.PageIndex = nPageAbs + 1; this.HdrFtrRecalc.PageIndex = nPageAbs + 1;
this.HdrFtrRecalc.Id = setTimeout(Document_Recalculate_HdrFtrPageCount, 20); this.HdrFtrRecalc.Id = setTimeout(Document_Recalculate_HdrFtrPageCount, 20);
return; return;
} }
} }
...@@ -3505,11 +3505,9 @@ CDocument.prototype.private_RecalculateHdrFtrPageCountUpdate = function() ...@@ -3505,11 +3505,9 @@ CDocument.prototype.private_RecalculateHdrFtrPageCountUpdate = function()
return; return;
} }
} }
if (nPageAbs >= nPagesCount) if (nPageAbs >= nPagesCount)
{ this.DrawingDocument.OnEndRecalculate(false, true);
this.DrawingDocument.OnEndRecalculate(true);
}
}; };
CDocument.prototype.OnColumnBreak_WhileRecalculate = function() CDocument.prototype.OnColumnBreak_WhileRecalculate = function()
{ {
......
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