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
This commit is contained in:
Enrico Forestieri 2009-05-24 01:38:33 +00:00
parent 97c9ef7184
commit 00a62b7c0a

View File

@ -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<docstring>(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);
}
}