1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

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);
}
}