Fix the partial patch for #9740 (XeTeX with TeX fonts), part 2.

This commit is contained in:
Günter Milde 2015-10-26 00:51:38 +01:00
parent 32edb65985
commit 2aa65fdc8d

View File

@ -1675,7 +1675,7 @@ void Buffer::writeLaTeXSource(otexstream & os,
// XeTeX with TeX fonts is only safe with ASCII encoding,
// See #9740 and FIXME in BufferParams::encoding()
if (params().useNonTeXFonts && (runparams.flavor == OutputParams::XETEX))
if (!params().useNonTeXFonts && (runparams.flavor == OutputParams::XETEX))
runparams.encoding = encodings.fromLyXName("ascii");
// If we are compiling a file standalone, even if this is the