]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListingsParams.cpp
Fix wrongly copy-pasted entries in SpellcheckerUi.ui
[lyx.git] / src / insets / InsetListingsParams.cpp
index b0b412b529e3bcf42bb26b688608f495909711f3..d055fd01ddff8ccb704aab0d61d4ee26dedf2171 100644 (file)
@@ -36,7 +36,7 @@ enum param_type {
        INTEGER, // accept an integer
        LENGTH,  // accept a latex length
        ONEOF,  // accept one of a few values
-       SUBSETOF, // accept a string composed of given characters
+       SUBSETOF // accept a string composed of given characters
 };
 
 
@@ -768,7 +768,7 @@ void InsetListingsParams::addParam(string const & key,
        else {
                bool has_special_char = false;
                for (size_t i = 0; i < value.size(); ++i)
-                       if (!isAlphaASCII(value[i]) && !isDigit(value[i])) {
+                       if (!isAlnumASCII(value[i])) {
                                has_special_char = true;
                                break;
                        }