From fd7310705492ddcea1ce4ed4e000d7177ad7c36d Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 18 Dec 2010 14:04:02 +0000 Subject: [PATCH] TeXOnePar() Be on the safe side and reinitialize runparam.par_begin and par_end git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36935 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 2ebde776ef..74da21268f 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -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; -- 2.39.2