]> git.lyx.org Git - features.git/commitdiff
amend bd9dce374976ef8d8f9be0140217c2d92b950c66
authorThibaut Cuvelier <tcuvelier@lyx.org>
Fri, 27 Nov 2020 16:59:35 +0000 (17:59 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Fri, 27 Nov 2020 16:59:35 +0000 (17:59 +0100)
Fix warning, add a comment while I'm there

src/output_docbook.cpp

index 519d70e5975dcd99af783fb3ad8c47fdc303eb67..8f313e17c5e143c7ab4383f726aebe0d2f37e61c 100644 (file)
@@ -1084,20 +1084,16 @@ void docbookParagraphs(Text const &text,
        bpit = info.epit;
 
        // Then, iterate through the paragraphs of this document.
-       bool currentlyInAppendix = false;
-
        auto par = text.paragraphs().iterator_at(bpit);
        auto end = text.paragraphs().iterator_at(epit);
        while (par != end) {
-               OutputParams ourparams = runparams;
-
-               if (par->params().startOfAppendix())
-                       currentlyInAppendix = true;
+               // Skip paragraphs not producing any output.
                if (hasOnlyNotes(*par)) {
                        ++par;
                        continue;
                }
 
+               OutputParams ourparams = runparams;
                Layout const &style = par->layout();
 
                // Think about adding <section> and/or </section>s.