Prevent circular reference when checking for blend modes (issue 4370)
This commit is contained in:
parent
31ea4e0f4d
commit
b0824e1626
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user