1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fixes #1055 by falling back to page resources

This commit is contained in:
Artur Adib 2012-01-17 14:40:52 -05:00
parent be2f973be8
commit 06c4c83edf
2 changed files with 11 additions and 4 deletions

View file

@ -292,8 +292,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// Create an IR of the pattern code.
var depIdx = dependencyArray.length;
var queueObj = {};
var codeIR = this.getIRQueue(pattern, dict.get('Resources'),
queueObj, dependencyArray);
var codeIR = this.getIRQueue(pattern, dict.get('Resources')
|| resources, queueObj, dependencyArray);
// Add the dependencies that are required to execute the
// codeIR.
@ -336,8 +336,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
// This adds the IRQueue of the xObj to the current queue.
var depIdx = dependencyArray.length;
this.getIRQueue(xobj, xobj.dict.get('Resources'), queue,
dependencyArray);
this.getIRQueue(xobj, xobj.dict.get('Resources') || resources,
queue, dependencyArray);
// Add the dependencies that are required to execute the
// codeIR.