Don't add a dependency to the array if the array already contains it
This commit is contained in:
parent
0e8952681b
commit
9c58cd4817
1 changed files with 4 additions and 1 deletions
3
pdf.js
3
pdf.js
|
@ -4173,9 +4173,12 @@ var PartialEvaluator = (function() {
|
|||
fnArray.push("dependency");
|
||||
argsArray.push(depList);
|
||||
for (var i = 0; i < depList.length; i++) {
|
||||
var dep = depList[i];
|
||||
if (dependency.indexOf(dep) == -1) {
|
||||
dependency.push(depList[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function buildPaintImageXObject(image, inline) {
|
||||
var dict = image.dict;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue