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

The end of the substring wasn't being detected properly.
This commit is contained in:
Carlos Garnacho 2010-12-21 18:44:53 +01:00
parent 1cecb10584
commit e5e95934ba

View File

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