Fix state of certain language packages (polyglossia, japanese) in children (#8779)

This commit is contained in:
Juergen Spitzmueller 2013-07-18 09:26:56 +02:00
parent b2e76d22d5
commit 2abe461b5c
2 changed files with 9 additions and 2 deletions

View File

@ -1468,7 +1468,9 @@ void Buffer::writeLaTeXSource(otexstream & os,
LYXERR(Debug::LATEX, " Validating buffer...");
LaTeXFeatures features(*this, params(), runparams);
validate(features);
runparams.use_polyglossia = features.usePolyglossia();
// This is only set once per document (in master)
if (!runparams.is_child)
runparams.use_polyglossia = features.usePolyglossia();
LYXERR(Debug::LATEX, " Buffer validation done.");
bool const output_preamble =
@ -1580,7 +1582,9 @@ void Buffer::writeLaTeXSource(otexstream & os,
runparams.use_babel = params().writeLaTeX(os, features,
d->filename.onlyPath());
runparams.use_japanese = features.isRequired("japanese");
// Japanese might be required only in some children of a document,
// but once required, we must keep use_japanese true.
runparams.use_japanese |= features.isRequired("japanese");
if (!output_body) {
// Restore the parenthood if needed

View File

@ -57,6 +57,9 @@ What's new
- Fix problem with unbalanced braces in XeTeX output (bug 8765).
- Fix state of certain language packages (polyglossia, japanese) in
child documents (bug 8779).
- Added h5 and h6 as tags for Paragraph and Subparagraph.
- Include alt tag when exporting math as images (bug 8746).