]> git.lyx.org Git - features.git/commitdiff
Fix regression of eb121f999
authorGeorg Baum <baum@lyx.org>
Tue, 17 Feb 2015 20:19:05 +0000 (21:19 +0100)
committerGeorg Baum <baum@lyx.org>
Tue, 17 Feb 2015 20:19:05 +0000 (21:19 +0100)
Again thanks to Scott for finding this. The removal of the check for full
unicode in eb121f999 was not wanted. Now listings can be exported to
lualatex and xetex again.

src/LaTeXFeatures.cpp

index aa52ec4ffbbf3655e6b56f86441df13378f40886..5c70dfb867e639afe858a3a0da32cded586082c1 100644 (file)
@@ -1593,7 +1593,8 @@ docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel, bool use_po
                // need to force a fixed width encoding for
                // \lstlistlistingname and \lstlistingname (bug 9382).
                // This needs to be consistent with InsetListings::latex().
-               bool const need_fixedwidth = it->second.fixedwidthpreambleencoding();
+               bool const need_fixedwidth = !runparams_.isFullUnicode() &&
+                               it->second.fixedwidthpreambleencoding();
                // language dependent commands (once per document)
                snippets.insert(i18npreamble(it->second.langpreamble(),
                                                buffer().language(),