fix: fix regression after colors simplifications

This commit is contained in:
Martin Guillon
2020-12-17 16:40:30 +01:00
parent 4ef99ab64f
commit 5a6158768d

View File

@@ -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;
}