mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Use await
consistently in the PartialEvaluator.setGState
method
This commit is contained in:
parent
1cc83c4fdc
commit
cf0797dfbd
1 changed files with 8 additions and 8 deletions
|
@ -1188,15 +1188,15 @@ class PartialEvaluator {
|
|||
break;
|
||||
}
|
||||
}
|
||||
return promise.then(function () {
|
||||
if (gStateObj.length > 0) {
|
||||
operatorList.addOp(OPS.setGState, [gStateObj]);
|
||||
}
|
||||
await promise;
|
||||
|
||||
if (isSimpleGState) {
|
||||
localGStateCache.set(cacheKey, gStateRef, gStateObj);
|
||||
}
|
||||
});
|
||||
if (gStateObj.length > 0) {
|
||||
operatorList.addOp(OPS.setGState, [gStateObj]);
|
||||
}
|
||||
|
||||
if (isSimpleGState) {
|
||||
localGStateCache.set(cacheKey, gStateRef, gStateObj);
|
||||
}
|
||||
}
|
||||
|
||||
loadFont(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue