summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-18 14:35:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-18 16:47:29 +0200
commitc85557c924ee83f9a29c07520c83d308ff5a4c79 (patch)
tree8243d14d515972abd03f91cadcce951f02a41c1a /sdext/source
parent8b69e7b26cb9812cc2ad778077db750260969a9a (diff)
poppler 0.73 doesn't have GooString::append(const std::string&)
don't know what version is appeared in Change-Id: Ia1fff05aa58990e631d63a2e694be47a4b74e24c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119126 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx4
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 bc313f76ecc4..9ffece584347 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -444,7 +444,11 @@ int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, GfxState* state )
if( familyName != "" )
{
aNewFont.familyName.clear();
+#if POPPLER_CHECK_VERSION(0, 74, 0) // at least 0.73 doesn't have GooString::append(const std::string&)
aNewFont.familyName.append( familyName );
+#else
+ aNewFont.familyName.append( familyName.c_str() );
+#endif
}
else
{