]> 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>
Tue, 26 Dec 2017 10:40:58 +0000 (11:40 +0100)
src/Paragraph.cpp

index 4f55280d35bd969f84eb9363553adb04be108c64..c37220effc402ec6155e20329968bdd25d957403 100644 (file)
@@ -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;
                        }