diff --git a/word/Editor/Paragraph.js b/word/Editor/Paragraph.js index 84209da3e6..deebd552f2 100644 --- a/word/Editor/Paragraph.js +++ b/word/Editor/Paragraph.js @@ -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) @@ -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(); diff --git a/word/Editor/Paragraph_Recalculate.js b/word/Editor/Paragraph_Recalculate.js index e06262c50e..4d8e9720f0 100644 --- a/word/Editor/Paragraph_Recalculate.js +++ b/word/Editor/Paragraph_Recalculate.js @@ -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 );