The branch, feature/docbook, has been updated.

- Log -----------------------------------------------------------------

commit 85d8c77522a0d4cbc1ea7f690a6252cf7a01c205
Author: Thibaut Cuvelier <tcuvel...@lyx.org>
Date:   Sun Sep 13 01:50:11 2020 +0200

    DocBook: slight code simplification.

diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp
index c8ddc1a..0d0aa10 100644
--- a/src/output_docbook.cpp
+++ b/src/output_docbook.cpp
@@ -1087,8 +1087,7 @@ void docbookParagraphs(Text const &text,
 
                // Close all sections before the bibliography.
                // TODO: Only close all when the bibliography is at the end of 
the document? Or force to output the bibliography at the end of the document? 
Or don't care (as allowed by DocBook)?
-               auto insetsLength = distance(par->insetList().begin(), 
par->insetList().end());
-               if (insetsLength > 0) {
+               if (!par->insetList().empty()) {
                        Inset const *firstInset = par->getInset(0);
                        if (firstInset && (firstInset->lyxCode() == 
BIBITEM_CODE || firstInset->lyxCode() == BIBTEX_CODE)) {
                                while (!headerLevels.empty()) {

-----------------------------------------------------------------------

Summary of changes:
 src/output_docbook.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Repository for new features
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to