]> git.lyx.org Git - lyx.git/blobdiff - src/ColorHandler.C
whitespace changes;
[lyx.git] / src / ColorHandler.C
index 2272dd12aeed9db4a175b4b88dd2624a1ce274cd..95912c522592b3c781e8812680eb44e7793bf479 100644 (file)
@@ -50,7 +50,7 @@ LyXColorHandler::~LyXColorHandler()
        // 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);
        }
 }
 
@@ -88,7 +88,7 @@ GC LyXColorHandler::getGCForeground(LColor::color c)
                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;