Commit e5e95934 authored by Carlos Garnacho's avatar Carlos Garnacho

Fix color name (as of rgb.txt) parsing in symbolic colors

The end of the substring wasn't being detected properly.
parent 1cecb105
......@@ -2116,8 +2116,9 @@ symbolic_color_parse_str (const gchar *string,
}
else
{
/* color name? parse until first whitespace */
while (*end != ' ' && *end != '\0')
/* Color name */
while (*end != '\0' &&
(g_ascii_isalnum (*end) || *end == ' '))
end++;
}
......
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