diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-11-11 20:26:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-11-12 08:11:31 +0100 |
commit | d4f0281f3127255b792a9ec492ba4a14d5ee64c2 (patch) | |
tree | 7b97bd87f64d1a68c2f5c924859fae332891c3dc /vcl | |
parent | de7ebc3b545408692bf9563e8b490b7b822fe3de (diff) |
external: update pdfium to 4699
Change-Id: I545adce0491e48fad2bfc4003695bd96cc911f22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125068
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/pdf/PDFiumLibrary.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/pdf/PDFiumLibrary.cxx b/vcl/source/pdf/PDFiumLibrary.cxx index 3766330b9481..e6abb40ccb89 100644 --- a/vcl/source/pdf/PDFiumLibrary.cxx +++ b/vcl/source/pdf/PDFiumLibrary.cxx @@ -816,7 +816,8 @@ OUString PDFiumPageObjectImpl::getFontName() OUString sFontName; const int nFontName = 80 + 1; std::unique_ptr<char[]> pFontName(new char[nFontName]); // + terminating null - int nFontNameChars = FPDFTextObj_GetFontName(mpPageObject, pFontName.get(), nFontName); + FPDF_FONT pFontObject = FPDFTextObj_GetFont(mpPageObject); + int nFontNameChars = FPDFFont_GetFontName(pFontObject, pFontName.get(), nFontName); if (nFontName >= nFontNameChars) { sFontName = OUString::createFromAscii(pFontName.get()); |