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:
Enrico Forestieri 2017-06-27 00:09:51 +02:00
parent 28be7d552f
commit 7b5d33a707

View File

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