]> git.lyx.org Git - features.git/commitdiff
Fix inpreamble styles.
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 26 Dec 2017 10:40:58 +0000 (11:40 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 16 Feb 2018 16:24:41 +0000 (17:24 +0100)
(cherry picked from commit e55e9c842f25b4425db362cd5cb487187f34ba2b)

src/Paragraph.cpp

index dd0920bda6f1ba8ed6148b75d28e18c8b25b6f29..8830efb1b51cc4e279f9df9c94554361a7c8ee68 100644 (file)
@@ -2428,7 +2428,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;
                }
@@ -2468,7 +2468,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;
                        }