mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Use c++11 to remove last char from a string
Thanks Scott.
This commit is contained in:
parent
333e023e82
commit
478a303f4a
@ -672,7 +672,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user