summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-15 20:10:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-15 20:10:37 (GMT)
commit54072496349622a788dad28bc5ab9c9df88084c0 (patch)
tree0de2c6c60349ed80563dfef016d1ecef175db953
parent15be8c0b27aaf02bfa0434ef4f8a34e7bd3f58a6 (diff)
downloadtk-54072496349622a788dad28bc5ab9c9df88084c0.zip
tk-54072496349622a788dad28bc5ab9c9df88084c0.tar.gz
tk-54072496349622a788dad28bc5ab9c9df88084c0.tar.bz2
[bug 3505358 ] invalid color name "#f75df642f527"
-rw-r--r--generic/tkColor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkColor.c b/generic/tkColor.c
index fcc6581..edd8509 100644
--- a/generic/tkColor.c
+++ b/generic/tkColor.c
@@ -859,6 +859,8 @@ TkParseColor(display, map, spec, colorPtr)
buf[2] = *(--spec);
buf[1] = buf[4] = *(--spec);
spec = buf;
+ } else {
+ spec -= 10;
}
}
return XParseColor(display, map, spec, colorPtr);