Browse Source

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`.
Jonas Jenwald 9 years ago
parent
commit
2d4a1aa0af
  1. 2
      src/core/evaluator.js

2
src/core/evaluator.js

@ -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…
Cancel
Save