summaryrefslogtreecommitdiffstats
path: root/generic/tkColor.c
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)
commit6bc45ebf5735c206013616f4dd346d2c640cc78f (patch)
tree246d11881d7f0476ecdab46507e0f4019c190a5e /generic/tkColor.c
parent55491f4cae556ae0b3b8f3ffc93c32b63bf3c2dc (diff)
parent6635145b0897b88785cc1b73b3a3685f84427e90 (diff)
downloadtk-6bc45ebf5735c206013616f4dd346d2c640cc78f.zip
tk-6bc45ebf5735c206013616f4dd346d2c640cc78f.tar.gz
tk-6bc45ebf5735c206013616f4dd346d2c640cc78f.tar.bz2
[bug 3505358 ] invalid color name "#f75df642f527"
Diffstat (limited to 'generic/tkColor.c')
-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);