Commit 7abd3713 authored by Albert Astals Cid's avatar Albert Astals Cid

this var is not about xobjects only anymroe

parent 1ac14df6
......@@ -137,14 +137,14 @@ void FontInfoScanner::scanFonts(Dict *resDict, GooList *fontsList) {
for (i = 0; i < objDict.dictGetLength(); ++i) {
objDict.dictGetValNF(i, &obj1);
if (obj1.isRef()) {
// check for an already-seen XObject
// check for an already-seen object
const Ref r = obj1.getRef();
if (visitedXObjects.find(r.num) != visitedXObjects.end()) {
if (visitedObjects.find(r.num) != visitedObjects.end()) {
obj1.free();
continue;
}
visitedXObjects.insert(r.num);
visitedObjects.insert(r.num);
}
obj1.fetch(doc->getXRef(), &obj2);
......
......@@ -85,7 +85,7 @@ private:
PDFDoc *doc;
int currentPage;
std::set<int> fonts;
std::set<int> visitedXObjects;
std::set<int> visitedObjects;
void scanFonts(Dict *resDict, GooList *fontsList);
};
......
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