* BufferParams.cpp: do not load luainputenc if inputenc has explicitly being disabled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37578 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2011-02-09 18:21:43 +00:00
parent 1b3c9e54c5
commit 58fd91390c

View File

@ -2494,7 +2494,9 @@ void BufferParams::writeEncodingPreamble(odocstream & os,
// LuaTeX neither, but with tex fonts, we need to load
// the luainputenc package.
if (features.runparams().flavor == OutputParams::LUATEX) {
if (!useNonTeXFonts) {
if (!useNonTeXFonts && inputenc != "default"
&& ((inputenc == "auto" && language->encoding()->package() == Encoding::inputenc)
|| (inputenc != "auto" && encoding().package() == Encoding::inputenc))) {
os << "\\usepackage[utf8]{luainputenc}\n";
texrow.newline();
}