diff options
author | Ionut Biru <ibiru@archlinux.org> | 2012-05-13 23:57:46 +0000 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-05-14 10:06:52 +0200 |
commit | 704f3155cca2e1fb5ad071539b7f8b5e5522dd97 (patch) | |
tree | a197fbd69f293ed959eaccde89a412045fa10d38 /sdext | |
parent | 2b92546ee3aa3d56f64c68ff3e8e782b3c56dba4 (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>
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 77e589620295..c9ffed3e40de 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -407,7 +407,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(); |