From: Juergen Spitzmueller Date: Thu, 26 Dec 2019 15:36:25 +0000 (+0100) Subject: Fix crash X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5d3fb02949cd3a2d247e34f8bfb983a51e4473f2;p=features.git Fix crash --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 18c87b101b..aca126ce2f 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -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()