]> git.lyx.org Git - features.git/commitdiff
Fix bug reported by Kornel.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 20 Mar 2020 19:25:47 +0000 (15:25 -0400)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:55 +0000 (15:48 +0200)
The old code was actually wrong. Obviously, this should be set only
if we actually do issue the title command.

src/output_latex.cpp

index 04d1e1789f04201c006a3ecaa541b1a1d3e2e6e6..d495c634398c563ba80ee9f4b9ec6773312cb6da 100644 (file)
@@ -1616,11 +1616,11 @@ void latexParagraphs(Buffer const & buf,
                                                          ), layout.name()));
                                }
                        } else if (!runparams.issued_title_cmd) {
-                               runparams.issued_title_cmd = true;
                                if (tclass.titletype() == TITLE_ENVIRONMENT) {
                                        os << "\\begin{"
                                                        << from_ascii(tclass.titlename())
                                                        << "}\n";
+                                       runparams.issued_title_cmd = true;
                                }
                        }
                } else if (runparams.issued_title_cmd &&