]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Fix a copy-paste error introduced in b754fb02
[lyx.git] / src / LaTeXFeatures.cpp
index 58daaac6fc22b5450f664f046d77e0e668b05c27..f1d315cae84e3341ebea09efdff2715cce1b9aeb 100644 (file)
@@ -1159,7 +1159,7 @@ docstring const getFloatI18nPreamble(docstring const & type,
        // Check whether name can be encoded in the buffer encoding
        bool encodable = true;
        for (size_t i = 0; i < name.size(); ++i) {
-               if (enc.latexChar(name[i], true)[0] != name[i]) {
+               if (!enc.encodable(name[i])) {
                        encodable = false;
                        break;
                }