From 499a0048b60659d55220da0ad949a0c26d225e40a93a4055f5c05c651260e51c Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Wed, 27 Apr 2022 13:06:48 +0000 Subject: [PATCH] Accepting request 973193 from home:dspinella:branches:LibreOffice:Factory OBS-URL: https://build.opensuse.org/request/show/973193 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1016 --- poppler-22-04-0.patch | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/poppler-22-04-0.patch b/poppler-22-04-0.patch index 6ee941a..d884c6f 100644 --- a/poppler-22-04-0.patch +++ b/poppler-22-04-0.patch @@ -77,10 +77,22 @@ Index: libreoffice-7.3.3.1/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx if( it == m_aFontMap.end() ) { +#if POPPLER_CHECK_VERSION(22, 04, 0) -+ nEmbedSize = parseFont( fontID, gfxFont->get(), state ); ++ nEmbedSize = parseFont( fontID, gfxFont.get(), state ); +#else nEmbedSize = parseFont( fontID, gfxFont, state ); +#endif it = m_aFontMap.find( fontID ); } +@@ -806,7 +837,11 @@ void PDFOutDev::updateFont(GfxState *sta + + if (nEmbedSize) + { ++#if POPPLER_CHECK_VERSION(22, 04, 0) ++ writeFontFile(gfxFont.get()); ++#else + writeFontFile(gfxFont); ++#endif + } + } +