From: Juergen Spitzmueller Date: Thu, 18 Jul 2013 07:26:56 +0000 (+0200) Subject: Fix state of certain language packages (polyglossia, japanese) in children (#8779) X-Git-Tag: 2.0.7~48 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2abe461b5c7d019ddcb83ad47e472cfa47e25a32;p=features.git Fix state of certain language packages (polyglossia, japanese) in children (#8779) --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 36d9b1fd3f..af1faf4211 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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 diff --git a/status.20x b/status.20x index 74472eb26d..56cb4d7b74 100644 --- a/status.20x +++ b/status.20x @@ -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).