DocBook: add assertion to help debugging.

This commit is contained in:
Thibaut Cuvelier 2021-10-07 02:34:07 +02:00
parent 82bca97379
commit 48a507694e

View File

@ -754,6 +754,8 @@ DocBookDocumentSectioning hasDocumentSectioning(ParagraphList const &paragraphs,
bool documentHasSections = false;
while (bpit < epit) {
LASSERT(bpit < paragraphs.size(), return make_tuple(documentHasSections, bpit));
Layout const &style = paragraphs[bpit].layout();
documentHasSections |= isLayoutSectioningOrSimilar(style);