Prevent circular reference when checking for blend modes (issue 4370)
This commit is contained in:
parent
31ea4e0f4d
commit
b0824e1626
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue