mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
* InsetInclude.cpp:
- if a master is compiled with XeteX or LuaTeX, all children must have plain utf8 encoding (bug #6774). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36554 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e14b6a280d
commit
72f24353fa
@ -20,6 +20,7 @@
|
||||
#include "BufferView.h"
|
||||
#include "Cursor.h"
|
||||
#include "DispatchResult.h"
|
||||
#include "Encoding.h"
|
||||
#include "ErrorList.h"
|
||||
#include "Exporter.h"
|
||||
#include "Format.h"
|
||||
@ -579,7 +580,11 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const
|
||||
// and language.
|
||||
Encoding const * const oldEnc = runparams.encoding;
|
||||
Language const * const oldLang = runparams.master_language;
|
||||
runparams.encoding = &tmp->params().encoding();
|
||||
// If the master has full unicode flavor (XeTeX, LuaTeX),
|
||||
// the children must be encoded in plain utf8!
|
||||
runparams.encoding = runparams.isFullUnicode() ?
|
||||
encodings.fromLyXName("utf8-plain")
|
||||
: &tmp->params().encoding();
|
||||
runparams.master_language = buffer().params().language;
|
||||
tmp->makeLaTeXFile(writefile,
|
||||
masterFileName(buffer()).onlyPath().absFileName(),
|
||||
|
Loading…
Reference in New Issue
Block a user