Browse Source

Prevent circular reference when checking for blend modes (issue 4370)

Jonas Jenwald 11 years ago committed by Yury Delendik
parent
commit
b0824e1626
  1. 4
      src/core/evaluator.js

4
src/core/evaluator.js

@ -75,7 +75,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
continue; continue;
} }
var xResources = xObject.dict.get('Resources'); var xResources = xObject.dict.get('Resources');
if (isDict(xResources)) { // Only add the resource if it's different from the current one,
// otherwise we can get stuck in an infinite loop.
if (isDict(xResources) && xResources !== node) {
nodes.push(xResources); nodes.push(xResources);
} }
} }

Loading…
Cancel
Save