Fix crash

This commit is contained in:
Juergen Spitzmueller 2019-12-26 16:36:25 +01:00
parent 6ed3eb6833
commit 38ca174819

View File

@ -1639,7 +1639,7 @@ void latexParagraphs(Buffer const & buf,
// Do not output empty environments if the whole paragraph has
// been deleted with ct and changes are not output.
if (pit < runparams.par_end) {
if (size_t(pit + 1) < paragraphs.size()) {
ParagraphList::const_iterator nextpar = paragraphs.constIterator(pit + 1);
Paragraph const & cpar = paragraphs.at(pit);
if ((par->layout() != nextpar->layout()