From: Juergen Spitzmueller Date: Tue, 26 Dec 2017 10:40:58 +0000 (+0100) Subject: Fix inpreamble styles. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4130 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e55e9c842f25b4425db362cd5cb487187f34ba2b;p=features.git Fix inpreamble styles. --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 4f55280d35..c37220effc 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -2426,7 +2426,7 @@ void Paragraph::latex(BufferParams const & bparams, if (empty()) { // For InTitle commands, we have already opened a group // in output_latex::TeXOnePar. - if (style.isCommand() && style.intitle) { + if (style.isCommand() && (!style.intitle || style.inpreamble)) { os << '{'; ++column; } @@ -2466,7 +2466,7 @@ void Paragraph::latex(BufferParams const & bparams, } // For InTitle commands, we have already opened a group // in output_latex::TeXOnePar. - if (style.isCommand() && !style.intitle) { + if (style.isCommand() && (!style.intitle || style.inpreamble)) { os << '{'; ++column; }