From 5d3fb02949cd3a2d247e34f8bfb983a51e4473f2 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 26 Dec 2019 16:36:25 +0100 Subject: [PATCH] Fix crash --- src/output_latex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5