]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
start the timer in the correct thread
[lyx.git] / src / output_latex.cpp
index ea72756300007ead9f54ecffe1d332f06ce068fe..63e61ac4b13fd746c486abf971aaca24caf21079 100644 (file)
@@ -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;