]> git.lyx.org Git - lyx.git/blobdiff - src/Color.cpp
installer: further preparation
[lyx.git] / src / Color.cpp
index 290c50a0b2aa6c41c77f2b8215ca0878bd6cc387..31d5f6269736b5ba2431724578526b6a60a1c0ee 100644 (file)
@@ -78,13 +78,15 @@ 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));
        return c;
 }
 
+
 string const outputLaTeXColor(RGBColor const & color)
 {
        // this routine returns a LaTeX readable color string in the form