mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
DocBook: add assertion to help debugging.
This commit is contained in:
parent
82bca97379
commit
48a507694e
@ -754,6 +754,8 @@ DocBookDocumentSectioning hasDocumentSectioning(ParagraphList const ¶graphs,
|
||||
bool documentHasSections = false;
|
||||
|
||||
while (bpit < epit) {
|
||||
LASSERT(bpit < paragraphs.size(), return make_tuple(documentHasSections, bpit));
|
||||
|
||||
Layout const &style = paragraphs[bpit].layout();
|
||||
documentHasSections |= isLayoutSectioningOrSimilar(style);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user