mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
fix replacement of multiple environment variables (result was not cleared for next iteration)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37699 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fbdf441a93
commit
75218491f9
@ -546,9 +546,9 @@ string const replaceEnvironmentPath(string const & path)
|
||||
|
||||
static regex envvar_br_re("(.*)" + envvar_br + "(.*)");
|
||||
static regex envvar_re("(.*)" + envvar + "(.*)");
|
||||
smatch what;
|
||||
string result = path;
|
||||
while (1) {
|
||||
smatch what;
|
||||
regex_match(result, what, envvar_br_re);
|
||||
if (!what[0].matched) {
|
||||
regex_match(result, what, envvar_re);
|
||||
|
Loading…
Reference in New Issue
Block a user