Commit e61ca32e authored by Jakob Stierhof's avatar Jakob Stierhof

Fix it also for string

parent 73dd151e
Pipeline #7155 passed with stages
in 36 seconds
......@@ -622,7 +622,7 @@ define get_color_palette (name, n)
pal = pal[[0:n-1] mod length(pal)];
if (qualifier_exists("string"))
return array_map(String_Type, &sprintf, "%06x", pal);
return array_map(String_Type, &sprintf, "%06x", pal[[0:n-1]]);
return pal[[0:n-1]];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment