Use the master buffer's param when compiling as a child (#8893)

This commit is contained in:
Juergen Spitzmueller 2013-11-18 08:46:50 +01:00
parent e690cfc47c
commit 50bcd6ed7b
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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.