]> git.lyx.org Git - lyx.git/blobdiff - src/ColorHandler.C
Fix fuer #209
[lyx.git] / src / ColorHandler.C
index 82b71e8d56eb16fad119a97249c44d0b1cd9ce4f..54968146a15d00d5d4ea0ae8b80d10b988e924aa 100644 (file)
@@ -108,7 +108,6 @@ GC LyXColorHandler::getGCForeground(LColor::color c)
                // the color closest to the one we want.
                Visual * vi = DefaultVisual(display, DefaultScreen(display));
 
-               //XColor * cmap = new XColor[vi->map_entries];
                boost::scoped_array<XColor> cmap(new XColor[vi->map_entries]);
 
                for (int i = 0; i < vi->map_entries; ++i) {
@@ -154,7 +153,6 @@ GC LyXColorHandler::getGCForeground(LColor::color c)
                       << _("Pixel [") << closest_pixel << _("] is used.") 
                       << endl;
                val.foreground = cmap[closest_pixel].pixel;
-               //delete[] cmap;
        }
 
        val.function = GXcopy;