diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-20 08:47:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-20 11:11:57 +0200 |
commit | fc7fbbd8ba089570c93917eedf1de0512cc0ba3b (patch) | |
tree | 101e0a370dcee60aa187b4577742c34ba7c8287f /sdext | |
parent | af686402107a54f141eea3bb7706e3ff665178ae (diff) |
allow build with poppler <= 0.82
Change-Id: Ia062a788fec9c67c18382c2ff5f4b4df35bd17d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120771
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx index 54caf6728133..74740233d467 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -458,7 +458,11 @@ int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, const GfxState* st aNewFont.isBold = gfxFont->isBold(); aNewFont.isItalic = gfxFont->isItalic(); +#if POPPLER_CHECK_VERSION(0, 83, 0) // const added to getTransformedFontSize aNewFont.size = state->getTransformedFontSize(); +#else + aNewFont.size = const_cast<GfxState*>(state)->getTransformedFontSize(); +#endif aNewFont.isUnderline = false; if( gfxFont->getType() == fontTrueType || gfxFont->getType() == fontType1 ) |