Kaydet (Commit) 516f81a1 authored tarafından Tomas Chvatal's avatar Tomas Chvatal

Do not call getOrigName ever

When one take look on what the code did:

   name = nameA;
   origName = nameA;

   GooString *getOrigName() { return origName; }
   GooString *getName() { return name; }

This code is used even with poppler 10 which was branched 4 years ago.
So simply do not bother with this code at all.

Change-Id: Iba877e765fb763878f5ccd3e1fa62c29cadc9085
üst a490c019
......@@ -406,10 +406,6 @@ 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 )
pFamily = gfxFont->getOrigName();
#endif
if( pFamily )
{
aNewFont.familyName.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment