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

index 8a33d51dc403497728ec856376104dda614f215b..89974bbcd3f855a3c9f51ab3a4c6853e06de15da 100644 (file)
@@ -745,7 +745,7 @@ void TeXOnePar(Buffer const & buf,
        // Do not output empty commands if the whole paragraph has
        // been deleted with ct and changes are not output.
        if (!runparams_in.for_search && style.latextype != LATEX_ENVIRONMENT
-           && par.isDeleted(0, par.size()) && !bparams.output_changes)
+           && par.size() > 0 && par.isDeleted(0, par.size()) && !bparams.output_changes)
                return;
 
        LYXERR(Debug::LATEX, "TeXOnePar for paragraph " << pit << " ptr " << &par << " '"