[pdf] Fix bug #79955

This commit is contained in:
Nikita Khromov
2026-02-10 15:16:29 +07:00
committed by Ilya Kirillov
parent a616a081f8
commit fab35ec968

View File

@ -8249,7 +8249,7 @@ ParaRun.prototype.Apply_TextPr = function(TextPr, IncFontSize, ApplyToAll)
}
function checkRunPdf(run, textPr) {
if (!!run.Pr.Bold !== !!textPr.Bold || !!run.Pr.Italic !== !!textPr.Italic || run.Pr.GetFontFamily() !== textPr.GetFontFamily())
if (!!run.Pr.Bold !== !!textPr.Bold || !!run.Pr.Italic !== !!textPr.Italic || (textPr.GetFontFamily() && run.Pr.GetFontFamily() != textPr.GetFontFamily()))
{
for (let i = 0; i < run.Content.length; i++)
{