mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
* src/insets/InsetListingsParams.cpp:
- prevent invalid pointer (bug 4780). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24501 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
133d84c42b
commit
0dafe24d16
@ -796,7 +796,7 @@ void InsetListingsParams::addParams(string const & par)
|
||||
} else if (par[i] == '=' && braces == 0) {
|
||||
isValue = true;
|
||||
continue;
|
||||
} else if (par[i] == '{' && par[i - 1] == '=')
|
||||
} else if (par[i] == '{' && i > 0 && par[i - 1] == '=')
|
||||
braces ++;
|
||||
else if (par[i] == '}'
|
||||
&& (i == par.size() - 1 || par[i + 1] == ',' || par[i + 1] == '\n'))
|
||||
|
Loading…
Reference in New Issue
Block a user