X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FColor.cpp;h=31d5f6269736b5ba2431724578526b6a60a1c0ee;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=290c50a0b2aa6c41c77f2b8215ca0878bd6cc387;hpb=cfd6767ec1a4776cd9a8d90e0cc4f532afe2001d;p=lyx.git diff --git a/src/Color.cpp b/src/Color.cpp index 290c50a0b2..31d5f62697 100644 --- a/src/Color.cpp +++ b/src/Color.cpp @@ -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