Tk_GetGC() can return an incorrect GC when a new GC is added which contains XGCValues that are default values. Example, set the foreground to black (value 0). The following patch adds valueMask to hash key, insuring a unique hash key.


31a32
>     unsigned long mask;
99a101
>     valueKey.mask = valueMask;