Stop passing in unnecessary parameters when parsing the Alternate
entry of ICCBased
ColorSpaces (PR 9659 follow-up)
With the changes made in PR 9659, `ColorSpace.fromIR` no longer takes a second `pdfFunctionFactory` parameter and there's thus one call-site that can be simplified.
This commit is contained in:
parent
19d7976483
commit
b8e1352934
@ -491,7 +491,7 @@ class ColorSpace {
|
|||||||
);
|
);
|
||||||
// Parse the /Alternate CS to ensure that the number of components
|
// Parse the /Alternate CS to ensure that the number of components
|
||||||
// are correct, and also (indirectly) that it is not a PatternCS.
|
// are correct, and also (indirectly) that it is not a PatternCS.
|
||||||
const altCS = this.fromIR(altIR, pdfFunctionFactory);
|
const altCS = this.fromIR(altIR);
|
||||||
if (altCS.numComps === numComps) {
|
if (altCS.numComps === numComps) {
|
||||||
return altIR;
|
return altIR;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user