Skip to content

Commit

Permalink
Merge pull request 'fix/bug-72050' (#576) from fix/bug-72050 into rel…
Browse files Browse the repository at this point in the history
…ease/v8.3.0
  • Loading branch information
KirillovIlya committed Jan 28, 2025
2 parents ed9e70c + 5db4570 commit a65545c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions word/Editor/Math.js
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,15 @@ ParaMath.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
{
// на случай когда у нас несколько неинлайновых формул в одном параграфе
PRS.SetMathRecalcInfoObject(null);

// TODO: Вообще инлайновая формула должна вести себя как буква на строке, т.е. идти как часть слова, но
// пока будем считать, что на ней всегда заканчивается слово
PRS.Word = false;
PRS.FirstItemOnLine = false;
PRS.EmptyLine = false;
PRS.TextOnLine = true;
PRS.SpaceLen = 0;
PRS.WordLen = 0;
}
}
else
Expand Down
5 changes: 4 additions & 1 deletion word/Math/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2459,7 +2459,10 @@ CMathBase.prototype.Displace_BreakOperator = function(isForward, bBrkBefore, Cou
};
CMathBase.prototype.Get_AlignBrk = function(_CurLine, bBrkBefore)
{
return this.Content[this.NumBreakContent].Get_AlignBrk(_CurLine, bBrkBefore);
if (!this.Content[this.NumBreakContent])
return null;

return this.Content[this.NumBreakContent].Get_AlignBrk(_CurLine, bBrkBefore);
};
CMathBase.prototype.raw_SetReviewInfo = function(reviewInfo)
{
Expand Down

0 comments on commit a65545c

Please sign in to comment.