]> git.lyx.org Git - features.git/commitdiff
TeXOnePar() Be on the safe side and reinitialize runparam.par_begin and par_end
authorAbdelrazak Younes <younes@lyx.org>
Sat, 18 Dec 2010 14:04:02 +0000 (14:04 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 18 Dec 2010 14:04:02 +0000 (14:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36935 a592a061-630c-0410-9148-cb99ea01b6c8

src/output_latex.cpp

index 2ebde776ef905653173406a40ad39d8c7fb0702f..74da21268f69726577b63b3c223a951b24cec6a3 100644 (file)
@@ -412,6 +412,11 @@ void TeXOnePar(Buffer const & buf,
 
        OutputParams runparams = runparams_in;
        runparams.isLastPar = nextpit == paragraphs.end();
+       // 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.
+       runparams.par_begin = 0;
+       runparams.par_end = 0;
 
        bool const maintext = text.isMainText();
        // we are at the beginning of an inset and CJK is already open;