mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #272: Crash when deleting page number in single-page PDF with transparency
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user