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

This commit is contained in:
Jonas Jenwald 2014-03-03 17:16:34 +01:00 committed by Yury Delendik
parent 31ea4e0f4d
commit b0824e1626

View File

@ -75,7 +75,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
continue;
}
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);
}
}