Avoid confusing colors for "Unlabeled0" labels

This commit is contained in:
Rodrigo Arias 2022-09-20 14:43:20 +02:00
parent a94a56a4ba
commit 591fe17609

View File

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