mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix a bug in the ColorConverters.CMYK_HTML
method (PR 12631 follow-up)
Because of a small oversight, this method accidentally handled the intermediate array incorrectly.
This commit is contained in:
parent
7a89f4a789
commit
b5cad9be03
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ class ColorConverters {
|
|||
}
|
||||
|
||||
static CMYK_HTML(components) {
|
||||
return this.RGB_HTML(this.CMYK_RGB(components));
|
||||
const rgb = this.CMYK_RGB(components).slice(1);
|
||||
return this.RGB_HTML(rgb);
|
||||
}
|
||||
|
||||
static RGB_CMYK([r, g, b]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue