mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Use the master buffer's param when compiling as a child (#8893)
This commit is contained in:
parent
e690cfc47c
commit
50bcd6ed7b
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user