mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix encoding-setting of child document with LuaTeX and TeX-fonts
This commit is contained in:
parent
576159156e
commit
4d2074b378
@ -688,9 +688,9 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
|
||||
// and language.
|
||||
Encoding const * const oldEnc = runparams.encoding;
|
||||
Language const * const oldLang = runparams.master_language;
|
||||
// If the master has full unicode flavor (XeTeX, LuaTeX),
|
||||
// If the master uses non-TeX fonts (XeTeX, LuaTeX),
|
||||
// the children must be encoded in plain utf8!
|
||||
runparams.encoding = runparams.isFullUnicode() ?
|
||||
runparams.encoding = masterBuffer->params().useNonTeXFonts ?
|
||||
encodings.fromLyXName("utf8-plain")
|
||||
: &tmp->params().encoding();
|
||||
runparams.master_language = buffer().params().language;
|
||||
|
Loading…
Reference in New Issue
Block a user