Use Buffer::validate() when previewing single paragraph

We used to use BufferParams::validate(), which does not validate the
paragraphs.
This commit is contained in:
Juergen Spitzmueller 2016-10-31 18:46:06 +01:00
parent 33103ebc37
commit 20e667e208
2 changed files with 4 additions and 1 deletions

View File

@ -3755,7 +3755,7 @@ auto_ptr<TexRow> Buffer::getSourceCode(odocstream & os, string const & format,
// in order to know if we should output polyglossia // in order to know if we should output polyglossia
// macros (instead of babel macros) // macros (instead of babel macros)
LaTeXFeatures features(*this, params(), runparams); LaTeXFeatures features(*this, params(), runparams);
params().validate(features); validate(features);
runparams.use_polyglossia = features.usePolyglossia(); runparams.use_polyglossia = features.usePolyglossia();
texrow.reset(new TexRow()); texrow.reset(new TexRow());
texrow->newline(); texrow->newline();

View File

@ -79,6 +79,9 @@ What's new
- The '|' special character in index insets must no longer be inserted via - The '|' special character in index insets must no longer be inserted via
TeX-mode. TeX-mode.
- Fix preview of language switching commands for single paragraphs in some
corner cases.
* LYX2LYX * LYX2LYX