[LyX/master] Amend 82ea3d6

Thibaut Cuvelier tcuvelier at lyx.org
Fri Oct 16 02:02:41 UTC 2020


commit 170866986c64e17d6913d346ba5bdbe07529e349
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Fri Oct 16 04:29:50 2020 +0200

    Amend 82ea3d6
    
    Test was done on the wrong data structure: the title is almost the only element ending up in shouldBeInInfo, it is never inmustBeInInfo.
---
 src/output_docbook.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp
index e9d826b..aca9075 100644
--- a/src/output_docbook.cpp
+++ b/src/output_docbook.cpp
@@ -922,7 +922,7 @@ void outputDocBookInfo(
 
 	// If there is no title, generate one (required for the document to be valid).
 	// This code is called for the main document, for table cells, etc., so be precise in this condition.
-	if (text.isMainText() && info.mustBeInInfo.empty()) {
+	if (text.isMainText() && info.shouldBeInInfo.empty()) {
 		xs << xml::StartTag("title");
 		xs << "Untitled Document";
 		xs << xml::EndTag("title");


More information about the lyx-cvs mailing list