* 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:
Jürgen Spitzmüller 2008-04-25 12:40:27 +00:00
parent 133d84c42b
commit 0dafe24d16

View File

@ -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'))