From 591fe17609a1629af13b92766e99201c5e0a00e4 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 20 Sep 2022 14:43:20 +0200 Subject: [PATCH] Avoid confusing colors for "Unlabeled0" labels --- emu_task.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emu_task.c b/emu_task.c index 5fd8bf9..85c71f0 100644 --- a/emu_task.c +++ b/emu_task.c @@ -194,6 +194,9 @@ get_task_type_gid(const char *label) /* Use non-negative values */ gid &= 0x7FFFFFFF; + /* Avoid bad colors for "Unlabeled0" */ + gid += 123; + if(gid == 0) gid++;