The branch, master, has been updated. - Log -----------------------------------------------------------------
commit 6de47fa87327417b8cd4d21754cc3ccad73ca1d3 Author: Juergen Spitzmueller <[email protected]> Date: Thu Jun 28 18:15:43 2012 +0200 fix bug #8209: polyglossia commands ignored partial source preview diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 437a64a..b6d9da1 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1473,6 +1473,7 @@ void Buffer::writeLaTeXSource(otexstream & os, LYXERR(Debug::LATEX, " Validating buffer..."); LaTeXFeatures features(*this, params(), runparams); validate(features); + runparams.use_polyglossia = features.usePolyglossia(); LYXERR(Debug::LATEX, " Buffer validation done."); bool const output_preamble = @@ -1570,7 +1571,6 @@ void Buffer::writeLaTeXSource(otexstream & os, MacroSet parentMacros; listParentMacros(parentMacros, features); - runparams.use_polyglossia = features.usePolyglossia(); // Write the preamble runparams.use_babel = params().writeLaTeX(os, features, d->filename.onlyPath()); @@ -3336,6 +3336,12 @@ void Buffer::getSourceCode(odocstream & os, string const format, } else if (params().isDocBook()) { docbookParagraphs(text(), *this, os, runparams); } else { + // We need to validate the Buffer params' features here + // in order to know if we should output polyglossia + // macros (instead of babel macros) + LaTeXFeatures features(*this, params(), runparams); + params().validate(features); + runparams.use_polyglossia = features.usePolyglossia(); TexRow texrow; texrow.reset(); texrow.newline(); ----------------------------------------------------------------------- Summary of changes: src/Buffer.cpp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) hooks/post-receive -- The LyX Source Repository
