Skip to content

Commit

Permalink
Fix bug #65688
Browse files Browse the repository at this point in the history
Fix the problem with calculation of the end info
  • Loading branch information
KirillovIlya committed Feb 13, 2025
1 parent 38e24d0 commit b58c0f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions word/Editor/Paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ Paragraph.prototype.CheckNotInlineObject = function(nMathPos, nDirection)

return true;
};
Paragraph.prototype.RecalculateEndInfo = function(isFast)
Paragraph.prototype.RecalculateEndInfo = function(isFast, isForce)
{
let logicDocument = this.GetLogicDocument();
if (!logicDocument || !logicDocument.GetRecalcId)
Expand All @@ -1518,7 +1518,7 @@ Paragraph.prototype.RecalculateEndInfo = function(isFast)
return;

let prevEndInfo = this.Parent.GetPrevElementEndInfo(this);
if (prevEndInfo && !prevEndInfo.CheckRecalcId(recalcId))
if (!isForce && prevEndInfo && !prevEndInfo.CheckRecalcId(recalcId))
return;

let prsi = AscWord.ParagraphStatePool.getEndInfoState();
Expand Down
2 changes: 1 addition & 1 deletion word/Editor/Paragraph_Recalculate.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ Paragraph.prototype.Recalculate_Page = function(CurPage, isStart, isFast)
this.FontMap.NeedRecalc = true;

this.RequestSpellCheck();
this.RecalculateEndInfo(isFast);
this.RecalculateEndInfo(isFast, true);

var RecalcResult = this.private_RecalculatePage( CurPage, isFast );

Expand Down

0 comments on commit b58c0f5

Please sign in to comment.