]> git.lyx.org Git - lyx.git/blobdiff - src/Color.cpp
this we don't need anymore
[lyx.git] / src / Color.cpp
index d9f4d5e999cb6a9253355ba62b9c97b04a46dca4..6aaa753a87b871e3bdf2c393bfd6ef707a74c683 100644 (file)
@@ -22,7 +22,7 @@
 #include "support/gettext.h"
 #include "support/lstrings.h"
 
-#include <boost/assert.hpp>
+#include "support/assert.h"
 
 #include <map>
 #include <cmath>
@@ -77,7 +77,7 @@ string const X11hexname(RGBColor const & col)
 RGBColor rgbFromHexName(string const & x11hexname)
 {
        RGBColor c;
-       BOOST_ASSERT(x11hexname.size() == 7 && x11hexname[0] == '#');
+       LASSERT(x11hexname.size() == 7 && x11hexname[0] == '#', /**/);
        c.r = hexstrToInt(x11hexname.substr(1,2));
        c.g = hexstrToInt(x11hexname.substr(3,2));
        c.b = hexstrToInt(x11hexname.substr(5,2));
@@ -102,6 +102,8 @@ ColorSet::ColorSet()
        { Color_background, N_("background"), "background", "linen", "background" },
        { Color_foreground, N_("text"), "foreground", "black", "foreground" },
        { Color_selection, N_("selection"), "selection", "LightBlue", "selection" },
+       { Color_selectiontext, N_("selected text"),
+               "selectiontext", "black", "selectiontext" },
        { Color_latex, N_("LaTeX text"), "latex", "DarkRed", "latex" },
        { Color_inlinecompletion, N_("inline completion"),
                "inlinecompletion", "grey60", "inlinecompletion" },