X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXRC.cpp;h=42df207154924ada4bbce032339249abe91141c7;hb=7441172d4d9a26eb4824bb8bee003f457ef34f1c;hp=69072ae4a08a56cd28a193cef412e9e507d13473;hpb=333e023e82a4ee59bf01628635cdbacb89e36edf;p=lyx.git diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 69072ae4a0..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; } @@ -672,7 +673,7 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format) if (lexrc.next()) { string userdir = package().user_support().absFileName(); if (userdir.back() == '/') - userdir = userdir.substr(0, userdir.size()-1); + userdir.pop_back(); lyxpipes = subst(os::internal_path(lexrc.getString()), "$$UserDir", userdir); }