Skip to content

Commit

Permalink
[de] Fix passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Aug 30, 2023
1 parent 3122af6 commit 0a4b6f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions word/Editor/Run.js
Original file line number Diff line number Diff line change
Expand Up @@ -3498,11 +3498,11 @@ ParaRun.prototype.getTextMetrics = function()
let fontSlot = this.IsMathRun() ? AscWord.fontslot_ASCII : AscWord.fontslot_None;
for (let nPos = 0, nCount = this.Content.length; nPos < nCount; ++nPos)
{
fontSlot |= this.Content[nPos].GetFontSlot(_oTextPr);
fontSlot |= this.Content[nPos].GetFontSlot(textPr);
}

if (AscWord.fontslot_Unknown === fontSlot)
fontSlot = oTextPr.CS || oTextPr.RTL ? AscWord.fontslot_CS : AscWord.fontslot_ASCII;
fontSlot = textPr.CS || textPr.RTL ? AscWord.fontslot_CS : AscWord.fontslot_ASCII;

return textPr.GetTextMetrics(fontSlot, this.Paragraph.GetTheme());
};
Expand Down

0 comments on commit 0a4b6f6

Please sign in to comment.