Use await
consistently in the PartialEvaluator.setGState
method
This commit is contained in:
parent
1cc83c4fdc
commit
cf0797dfbd
@ -1188,15 +1188,15 @@ class PartialEvaluator {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return promise.then(function () {
|
await promise;
|
||||||
if (gStateObj.length > 0) {
|
|
||||||
operatorList.addOp(OPS.setGState, [gStateObj]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isSimpleGState) {
|
if (gStateObj.length > 0) {
|
||||||
localGStateCache.set(cacheKey, gStateRef, gStateObj);
|
operatorList.addOp(OPS.setGState, [gStateObj]);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
if (isSimpleGState) {
|
||||||
|
localGStateCache.set(cacheKey, gStateRef, gStateObj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadFont(
|
loadFont(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user