Merge pull request #1976 from yurydelendik/issue-1940

Marks xref entries with offset 0 as free
This commit is contained in:
Brendan Dahl 2012-08-14 08:52:19 -07:00
commit 1debf15b59

View File

@ -624,7 +624,7 @@ var XRef = (function XRefClosure() {
var e = this.entries[i];
if (e === null)
return null;
return e.free ? null : e; // returns null is the entry is free
return e.free || !e.offset ? null : e; // returns null if entry is free
},
fetchIfRef: function XRef_fetchIfRef(obj) {
if (!isRef(obj))