mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Marks xref entries with offset 0 as free
This commit is contained in:
parent
6ccf711966
commit
3093427480
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue