From b5cad9be03a11f58731bf946c6fe2d0c6b649963 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 9 Jun 2022 10:03:36 +0200 Subject: [PATCH] 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. --- src/shared/scripting_utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/scripting_utils.js b/src/shared/scripting_utils.js index 48e04d775..643922051 100644 --- a/src/shared/scripting_utils.js +++ b/src/shared/scripting_utils.js @@ -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]) {