mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Merge pull request #5192 from nnethercote/empty-setGState
Ignore setGState no-ops.
This commit is contained in:
commit
e53a28c996
1 changed files with 4 additions and 2 deletions
|
@ -412,7 +412,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
|
||||
break;
|
||||
// Only generate info log messages for the following since
|
||||
// they are unlikey to have a big impact on the rendering.
|
||||
// they are unlikely to have a big impact on the rendering.
|
||||
case 'OP':
|
||||
case 'op':
|
||||
case 'OPM':
|
||||
|
@ -446,7 +446,9 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
setGStateForKey(gStateObj, key, value);
|
||||
}
|
||||
return promise.then(function () {
|
||||
operatorList.addOp(OPS.setGState, [gStateObj]);
|
||||
if (gStateObj.length >= 0) {
|
||||
operatorList.addOp(OPS.setGState, [gStateObj]);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue