]> git.lyx.org Git - features.git/commitdiff
Fix crash
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 26 Dec 2019 15:36:25 +0000 (16:36 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:49 +0000 (15:48 +0200)
src/output_latex.cpp

index 18c87b101bbb1b4e6d66f353101f97a90d968b4e..aca126ce2fa4e092a5e2a3e7b8ddb5662186ee44 100644 (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()