1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #2405 from mehlis/patch-1

Update src/obj.js
This commit is contained in:
Yury Delendik 2012-11-24 14:20:50 -08:00
commit 914f4dc703

View file

@ -307,8 +307,10 @@ var Catalog = (function CatalogClosure() {
continue;
}
var names = obj.get('Names');
for (i = 0, n = names.length; i < n; i += 2) {
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
if (names) {
for (i = 0, n = names.length; i < n; i += 2) {
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
}
}
}
}