commit 7af6575cf6cd764b8b567b358907ac9a7a8e322b
Author: Richard Kimberly Heck <[email protected]>
Date: Tue Mar 17 01:33:44 2020 -0400
Fix bug #11787.
Make sure we are actually at the end of the document before issuing
\maketitle because we are at the end of the document.
---
src/output_latex.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index 4aa797b..1185e2d 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -1688,8 +1688,11 @@ void latexParagraphs(Buffer const & buf,
//os << '\n';
}
- // It might be that we only have a title in this document
- if (was_title && !already_title) {
+ // It might be that we only have a title in this document.
+ // But if we're in a branch, this is not the end of
+ // the document. (There may be some other checks of this
+ // kind that are needed.)
+ if (was_title && !already_title && !runparams.inbranch) {
if (tclass.titletype() == TITLE_ENVIRONMENT) {
os << "\\end{" << from_ascii(tclass.titlename())
<< "}\n";
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs