X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput_latex.cpp;h=697a3b5028d3cb97a2263cb0e04f588c4ce6d033;hb=3d4076b598deb18660e50ec9c327efc3b15f15d0;hp=4acbe654331ab67fe2bb0acc41158f860721e0f4;hpb=41060c9723f6bf5ee5e1e888961338a62bb0302e;p=lyx.git diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 4acbe65433..697a3b5028 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1041,6 +1041,9 @@ void latexParagraphs(Buffer const & buf, OutputParams const & runparams, string const & everypar) { + LASSERT(runparams.par_begin <= runparams.par_end, + { os << "% LaTeX Output Error\n"; return; } ); + BufferParams const & bparams = buf.params(); bool const maintext = text.isMainText(); @@ -1078,7 +1081,6 @@ void latexParagraphs(Buffer const & buf, } ParagraphList const & paragraphs = text.paragraphs(); - LASSERT(runparams.par_begin <= runparams.par_end, /**/); if (runparams.par_begin == runparams.par_end) { // The full doc will be exported but it is easier to just rely on