mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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.
This commit is contained in:
parent
36c8e06cf1
commit
170866986c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user