mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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()) {
|
if (lexrc.next()) {
|
||||||
string userdir = package().user_support().absFileName();
|
string userdir = package().user_support().absFileName();
|
||||||
if (userdir.back() == '/')
|
if (userdir.back() == '/')
|
||||||
userdir = userdir.substr(0, userdir.size()-1);
|
userdir.pop_back();
|
||||||
lyxpipes = subst(os::internal_path(lexrc.getString()), "$$UserDir",
|
lyxpipes = subst(os::internal_path(lexrc.getString()), "$$UserDir",
|
||||||
userdir);
|
userdir);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user