From: Enrico Forestieri Date: Sun, 24 May 2009 01:38:33 +0000 (+0000) Subject: Fix reverse search when the View Source window is active. X-Git-Tag: 2.0.0~6456 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=00a62b7c0a21baa53584e3eda58570caab13e399;p=features.git Fix reverse search when the View Source window is active. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29834 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index d9d9547df5..b5dc10bd56 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2417,9 +2417,9 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin, // No side effect of file copying and image conversion runparams.dryrun = true; - d->texrow.reset(); if (full_source) { os << "% " << _("Preview source code") << "\n\n"; + d->texrow.reset(); d->texrow.newline(); d->texrow.newline(); if (isDocBook()) @@ -2441,14 +2441,16 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin, convert(par_end - 1)) << "\n\n"; } - d->texrow.newline(); - d->texrow.newline(); + TexRow texrow; + texrow.reset(); + texrow.newline(); + texrow.newline(); // output paragraphs if (isDocBook()) docbookParagraphs(paragraphs(), *this, os, runparams); else // latex or literate - latexParagraphs(*this, text(), os, d->texrow, runparams); + latexParagraphs(*this, text(), os, texrow, runparams); } }