diff options
author | Ionut Biru <ibiru@archlinux.org> | 2012-05-13 23:57:46 +0000 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-05-14 14:59:57 +0200 |
commit | ac68934592ec7d838cf5c22744be8d97aa4a1a47 (patch) | |
tree | 69b816550c0425fba65249e24b0a9ed5f36273e1 | |
parent | f644f31c8edf3e39b23d8cc4d4b484cca8e99910 (diff) |
poppler 0.20 changed its api
Modification introduced in
http://cgit.freedesktop.org/poppler/poppler/commit/?id=c0affb1845c339f89ca67608cb9fd9134ff902f5
Signed-off-by: Ionut Biru <ibiru@archlinux.org>
Signed-off-by: Petr Mladek <pmladek@suse.cz>
-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 3f1261c9413b..7f0968b4338f 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -403,7 +403,11 @@ int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, GfxState* state ) GooString* pFamily = gfxFont->getName(); if( ! pFamily ) +#if POPPLER_CHECK_VERSION(0, 20, 0) + pFamily = gfxFont->getName(); +#else pFamily = gfxFont->getOrigName(); +#endif if( pFamily ) { aNewFont.familyName.clear(); |