forked from AuroraMiddleware/gtk
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:
parent
1cecb10584
commit
e5e95934ba
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user