// Iterate over the line cache and Free the GCs
for (LineGCCache::iterator lit = lineGCcache.begin();
lit != lineGCcache.end(); ++lit) {
- XFreeGC(display, (*lit).second);
+ XFreeGC(display, lit->second);
}
}
val.foreground = bla;
// Try the exact RGB values first, then the approximate.
} else if (XAllocColor(display, colormap, &xcol) != 0) {
- if (lyxerr.debugging()) {
+ if (lyxerr.debugging(Debug::GUI)) {
lyxerr << _("LyX: X11 color ") << s
<< _(" allocated for ")
<< lcolor.getGUIName(c) << endl;