From 50bcd6ed7b4e7c1cc17fd77090b3d8fcdddb5994 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 18 Nov 2013 08:46:50 +0100 Subject: [PATCH] Use the master buffer's param when compiling as a child (#8893) --- src/Paragraph.cpp | 3 ++- src/output_latex.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index c261b5320b..fb522391fb 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1450,7 +1450,8 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const if (layout_->inpreamble && inset_owner_) { bool const is_command = layout_->latextype == LATEX_COMMAND; Buffer const & buf = inset_owner_->buffer(); - BufferParams const & bp = buf.params(); + BufferParams const & bp = features.runparams().is_child + ? buf.masterBuffer()->params() : buf.params(); Font f; TexRow texrow; // Using a string stream here circumvents the encoding diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 4883d1b4f7..a07b538c1c 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -523,7 +523,8 @@ void TeXOnePar(Buffer const & buf, string const & everypar, int start_pos, int end_pos) { - BufferParams const & bparams = buf.params(); + BufferParams const & bparams = runparams_in.is_child + ? buf.masterBuffer()->params() : buf.params(); ParagraphList const & paragraphs = text.paragraphs(); Paragraph const & par = paragraphs.at(pit); // FIXME This check should not really be needed.