mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Actually ignore no-op setGState
(PR 5192 followup)
The intention of PR 5192 was to avoid adding empty `setGState` ops to the operatorList. But the patch accidentally used `>=`, which means that it's not actually working as intended, since empty arrays always have `length === 0`.
This commit is contained in:
parent
974433a7a7
commit
2d4a1aa0af
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return promise.then(function () {
|
return promise.then(function () {
|
||||||
if (gStateObj.length >= 0) {
|
if (gStateObj.length > 0) {
|
||||||
operatorList.addOp(OPS.setGState, [gStateObj]);
|
operatorList.addOp(OPS.setGState, [gStateObj]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue