From 5a6158768d4fe30439de9f4e91da5914daacddb7 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Thu, 17 Dec 2020 16:40:30 +0100 Subject: [PATCH] fix: fix regression after colors simplifications --- packages/core/color/color-common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/color/color-common.ts b/packages/core/color/color-common.ts index 33bb6ad63..b4c349dda 100644 --- a/packages/core/color/color-common.ts +++ b/packages/core/color/color-common.ts @@ -95,7 +95,7 @@ export class Color implements definition.Color { } let intVal = parseInt(hex, 16); - if (length === 6) { + if (hex.length === 6) { // add the alpha component since the provided string is RRGGBB intVal = (intVal & 0x00ffffff) + 0xff000000; }