* ColorHandler.C (updateColor): change the hash to cover the whole
LColor enum, ws cleanup
(getGCLinepars): ditto
+ (getGCLinepars): only lookup in the linecache once.
2001-12-07 Dekel Tsur <dekelts@tau.ac.il>
int index = lw + (ls << 1) + (c << 6);
- if (lineGCcache.find(index) != lineGCcache.end())
- return lineGCcache[index];
+ LineGCCache::iterator it = lineGCcache.find(index);
+ if (it != lineGCcache.end())
+ return it->second;
XGCValues val;
XGetGCValues(display, getGCForeground(c), GCForeground, &val);