X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXRC.cpp;h=42df207154924ada4bbce032339249abe91141c7;hb=7441172d4d9a26eb4824bb8bee003f457ef34f1c;hp=a274c5f03f94a658bf170f92111e53db615fd460;hpb=478a303f4a68c4ce2aead172ac812230f9d23e23;p=lyx.git diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index a274c5f03f..42df207154 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -643,13 +643,13 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format) lexrc.printError("Missing color tag."); break; } - string lyx_name = lexrc.getString(); + string const lyx_name = lexrc.getString(); if (!lexrc.next()) { lexrc.printError("Missing color name for color: `$$Token'"); break; } - string x11_name = lexrc.getString(); + string const x11_name = lexrc.getString(); ColorCode const col = lcolor.getFromLyXName(lyx_name); @@ -660,6 +660,7 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format) if (!lcolor.setColor(col, x11_name)) LYXERR0("Bad lyxrc set_color for " << lyx_name); + LYXERR(Debug::LYXRC, "Set " << lyx_name << "(" << col << ") to " << x11_name); break; }