From 00a62b7c0a21baa53584e3eda58570caab13e399 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 24 May 2009 01:38:33 +0000 Subject: [PATCH] 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 --- src/Buffer.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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); } } -- 2.39.2