forked from pool/libreoffice
Accepting request 973051 from home:dspinella:branches:LibreOffice:Factory
OBS-URL: https://build.opensuse.org/request/show/973051 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1014
This commit is contained in:
parent
0fd99c1185
commit
81d3f955d0
@ -60,3 +60,27 @@ Index: libreoffice-7.3.3.1/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if POPPLER_CHECK_VERSION(0, 83, 0)
|
#if POPPLER_CHECK_VERSION(0, 83, 0)
|
||||||
|
@@ -759,7 +782,11 @@ void PDFOutDev::updateFont(GfxState *sta
|
||||||
|
{
|
||||||
|
assert(state);
|
||||||
|
|
||||||
|
+#if POPPLER_CHECK_VERSION(22, 04, 0)
|
||||||
|
+ std::shared_ptr<GfxFont> gfxFont = state->getFont();
|
||||||
|
+#else
|
||||||
|
GfxFont *gfxFont = state->getFont();
|
||||||
|
+#endif
|
||||||
|
if( !gfxFont )
|
||||||
|
return;
|
||||||
|
|
||||||
|
@@ -776,7 +803,11 @@ void PDFOutDev::updateFont(GfxState *sta
|
||||||
|
m_aFontMap.find( fontID );
|
||||||
|
if( it == m_aFontMap.end() )
|
||||||
|
{
|
||||||
|
+#if POPPLER_CHECK_VERSION(22, 04, 0)
|
||||||
|
+ nEmbedSize = parseFont( fontID, gfxFont->get(), state );
|
||||||
|
+#else
|
||||||
|
nEmbedSize = parseFont( fontID, gfxFont, state );
|
||||||
|
+#endif
|
||||||
|
it = m_aFontMap.find( fontID );
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user