Issue #272: Crash when deleting page number in single-page PDF with transparency

This commit is contained in:
Jakub Melka
2025-05-04 19:46:23 +02:00
parent d34373fabe
commit d03434379f

View File

@ -951,6 +951,7 @@ QByteArray PDFPageContentEditorContentStreamBuilder::selectFont(const QByteArray
m_fontDictionary.setEntry(PDFInplaceOrMemoryString(defaultFontKey), defaultFontFactory.takeObject()); m_fontDictionary.setEntry(PDFInplaceOrMemoryString(defaultFontKey), defaultFontFactory.takeObject());
} }
fontObject = m_fontDictionary.get(defaultFontKey);
m_textFont = PDFFont::createFont(fontObject, font, m_document); m_textFont = PDFFont::createFont(fontObject, font, m_document);
return defaultFontKey; return defaultFontKey;
} }