]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / insets / InsetListings.cpp
index a8b56d0773d27cdc2c121c4e9ffbfaedb5add992..0d61af671a02f8a45877b2011389674da79c13ee 100644 (file)
@@ -176,7 +176,7 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const
                        // we can only output characters covered by the current
                        // encoding!
                        try {
-                               if (runparams.encoding->latexChar(c) == docstring(1, c))
+                               if (runparams.encoding->encodable(c))
                                        code += c;
                                else if (runparams.dryrun) {
                                        code += "<" + _("LyX Warning: ")