]> git.lyx.org Git - lyx.git/blobdiff - src/Color.cpp
PDF-form.lyx: add a note
[lyx.git] / src / Color.cpp
index 609c742e73a28e4f99936a659f85e12276ebb0fe..161ebbad090cc69542601a8a22ac0388df625a6d 100644 (file)
@@ -78,7 +78,8 @@ string const X11hexname(RGBColor const & col)
 RGBColor rgbFromHexName(string const & x11hexname)
 {
        RGBColor c;
-       LASSERT(x11hexname.size() == 7 && x11hexname[0] == '#', /**/);
+       LASSERT(x11hexname.size() == 7 && x11hexname[0] == '#',
+               return c);
        c.r = hexstrToInt(x11hexname.substr(1, 2));
        c.g = hexstrToInt(x11hexname.substr(3, 2));
        c.b = hexstrToInt(x11hexname.substr(5, 2));
@@ -237,6 +238,7 @@ ColorSet::ColorSet()
        { Color_urllabel, N_("URL label"), "urllabel", "blue", "urllabel" },
        { Color_urltext, N_("URL text"), "urltext", "blue", "urltext" },
        { Color_depthbar, N_("depth bar"), "depthbar", "IndianRed", "depthbar" },
+       { Color_scroll, N_("scroll indicator"), "scroll", "IndianRed", "scroll" },
        { Color_language, N_("language"), "language", "Blue", "language" },
        { Color_command, N_("command inset"), "command", "black", "command" },
        { Color_commandbg, N_("command inset background"), "commandbg", "azure", "commandbg" },