summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-15 20:13:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-15 20:13:25 (GMT)
commitf83e6394a1cbc1886fc8dc164d8c461bbc8f46d1 (patch)
tree246d11881d7f0476ecdab46507e0f4019c190a5e /generic
parent64dc4d20f50af60de85e9a7c61f4146ef5ea5a55 (diff)
parente721f3b20af09520fcc45aa7118c38344c95c96a (diff)
downloadtk-f83e6394a1cbc1886fc8dc164d8c461bbc8f46d1.zip
tk-f83e6394a1cbc1886fc8dc164d8c461bbc8f46d1.tar.gz
tk-f83e6394a1cbc1886fc8dc164d8c461bbc8f46d1.tar.bz2
[bug 3505358 ] invalid color name "#f75df642f527"
Diffstat (limited to 'generic')
-rw-r--r--generic/tkColor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkColor.c b/generic/tkColor.c
index 3bf4857..dbdaa23 100644
--- a/generic/tkColor.c
+++ b/generic/tkColor.c
@@ -874,6 +874,8 @@ TkParseColor(
buf[2] = *(--spec);
buf[1] = buf[4] = *(--spec);
spec = buf;
+ } else {
+ spec -= 10;
}
}
return XParseColor(display, map, spec, colorPtr);