mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Amend 28be7d55
to avoid an exception
This was occurring during validation when trying to enter the language name in the advanced tab.
This commit is contained in:
parent
28be7d552f
commit
7b5d33a707
@ -1050,8 +1050,8 @@ void InsetListingsParams::addParam(string const & key,
|
||||
if (key.empty())
|
||||
return;
|
||||
|
||||
string const value = (minted() && key == "language") ? languageonly(val)
|
||||
: val;
|
||||
string const value = (minted() && key == "language" && !val.empty())
|
||||
? languageonly(val) : val;
|
||||
// duplicate parameters!
|
||||
string keyname = key;
|
||||
if (!replace && hasParam(key))
|
||||
|
Loading…
Reference in New Issue
Block a user