From: Enrico Forestieri Date: Mon, 26 Jun 2017 22:09:51 +0000 (+0200) Subject: Amend 28be7d55 to avoid an exception X-Git-Tag: 2.3.0beta1~219 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7b5d33a70746f42364b7d8ff944e7a768b508e95;p=features.git Amend 28be7d55 to avoid an exception This was occurring during validation when trying to enter the language name in the advanced tab. --- diff --git a/src/insets/InsetListingsParams.cpp b/src/insets/InsetListingsParams.cpp index 0daf408185..503200d87b 100644 --- a/src/insets/InsetListingsParams.cpp +++ b/src/insets/InsetListingsParams.cpp @@ -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))