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