mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
97c9ef7184
commit
00a62b7c0a
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user