X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_latex.cpp;h=63e61ac4b13fd746c486abf971aaca24caf21079;hb=726b602329029099ddb7d1ac8033186eb39c132a;hp=ea72756300007ead9f54ecffe1d332f06ce068fe;hpb=2ab16013117ba1c3da1d9d21b27663c766cabb1c;p=lyx.git diff --git a/src/output_latex.cpp b/src/output_latex.cpp index ea72756300..63e61ac4b1 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -405,7 +405,7 @@ void TeXOnePar(Buffer const & buf, << everypar << "'"); OutputParams runparams = runparams_in; - runparams.isLastPar = (pit == paragraphs.size() - 1); + runparams.isLastPar = (pit == pit_type(paragraphs.size() - 1)); // We reinitialze par begin and end to be on the safe side // with embedded inset as we don't know if they set those // value correctly. @@ -977,7 +977,7 @@ void latexParagraphs(Buffer const & buf, pit_type pit = runparams.par_begin; // lastpit is for the language check after the loop. - pit_type lastpit; + pit_type lastpit = pit; // variables used in the loop: bool was_title = false; bool already_title = false;