better fix for poppler 0.20

Do not call gfxFont->getName() twice; Thanks David Tardon for catching this.

Heh, I wonder if gfxFont->getOrigName() ever given any different value
than getName() ;-)

Change-Id: Idaf95a6a024076c6d450519923b6129166a5f8bd
This commit is contained in:
Petr Mladek
2012-05-14 15:35:05 +02:00
parent 6b3bf27cb5
commit cf7f6ba13f

View File

@@ -406,10 +406,8 @@ int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, GfxState* state )
int nSize = 0;
GooString* pFamily = gfxFont->getName();
#if !POPPLER_CHECK_VERSION(0, 20, 0)
if( ! pFamily )
#if POPPLER_CHECK_VERSION(0, 20, 0)
pFamily = gfxFont->getName();
#else
pFamily = gfxFont->getOrigName();
#endif
if( pFamily )