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