From: Richard Kimberly Heck Date: Fri, 20 Mar 2020 19:25:47 +0000 (-0400) Subject: Fix bug reported by Kornel. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0ee14e4093d3cb671e16a0d92ff4e06d926a69e2;p=features.git Fix bug reported by Kornel. The old code was actually wrong. Obviously, this should be set only if we actually do issue the title command. --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 04d1e1789f..d495c63439 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -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 &&