poppler/FontInfo.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 0a1c6c41cf27bbfa2e19fe0b3c48eeb919f8e322 Author: Albert Astals Cid <[email protected]> Date: Fri Apr 5 16:30:01 2019 +0200 Rename resObj to dictObjI since that makes much more sense And we already have a resObj down the function that is the Resources object so that should be actually called resObj diff --git a/poppler/FontInfo.cc b/poppler/FontInfo.cc index 2b5c7e53..2c3be4c6 100644 --- a/poppler/FontInfo.cc +++ b/poppler/FontInfo.cc @@ -131,10 +131,10 @@ void FontInfoScanner::scanFonts(XRef *xrefA, Dict *resDict, std::vector<FontInfo Object objDict = resDict->lookup(resTypes[resType]); if (objDict.isDict()) { for (int i = 0; i < objDict.dictGetLength(); ++i) { - const Object &resObj = objDict.dictGetValNF(i); - if (resObj.isRef()) { + const Object &dictObjI = objDict.dictGetValNF(i); + if (dictObjI.isRef()) { // check for an already-seen object - const Ref r = resObj.getRef(); + const Ref r = dictObjI.getRef(); if (visitedObjects.find(r.num) != visitedObjects.end()) { continue; } @@ -142,7 +142,7 @@ void FontInfoScanner::scanFonts(XRef *xrefA, Dict *resDict, std::vector<FontInfo visitedObjects.insert(r.num); } - Object obj2 = resObj.fetch(xrefA); + Object obj2 = dictObjI.fetch(xrefA); if (obj2.isStream()) { Object resObj = obj2.streamGetDict()->lookup("Resources"); if (resObj.isDict() && resObj.getDict() != resDict) { _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
