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>
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user