]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Russian layouttranslations reviewed by Yuriy, Dec 13 2017.
[lyx.git] / src / Paragraph.cpp
index a6c72c310e0b22a07b1251132133a1d02899041a..4f55280d35bd969f84eb9363553adb04be108c64 100644 (file)
@@ -2424,7 +2424,9 @@ void Paragraph::latex(BufferParams const & bparams,
 
        // if the paragraph is empty, the loop will not be entered at all
        if (empty()) {
-               if (style.isCommand()) {
+               // For InTitle commands, we have already opened a group
+               // in output_latex::TeXOnePar.
+               if (style.isCommand() && style.intitle) {
                        os << '{';
                        ++column;
                }
@@ -2462,7 +2464,9 @@ void Paragraph::latex(BufferParams const & bparams,
                                os << "}] ";
                                column +=3;
                        }
-                       if (style.isCommand()) {
+                       // For InTitle commands, we have already opened a group
+                       // in output_latex::TeXOnePar.
+                       if (style.isCommand() && !style.intitle) {
                                os << '{';
                                ++column;
                        }