mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ class ColorSpace {
|
|||
);
|
||||
// Parse the /Alternate CS to ensure that the number of components
|
||||
// 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) {
|
||||
return altIR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue