From 20e667e208cbbf5aa1ca291389e9e6d45a85f11b Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 31 Oct 2016 18:46:06 +0100 Subject: [PATCH] Use Buffer::validate() when previewing single paragraph We used to use BufferParams::validate(), which does not validate the paragraphs. --- src/Buffer.cpp | 2 +- status.22x | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 4d3088458f..3956896d39 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -3755,7 +3755,7 @@ auto_ptr Buffer::getSourceCode(odocstream & os, string const & format, // in order to know if we should output polyglossia // macros (instead of babel macros) LaTeXFeatures features(*this, params(), runparams); - params().validate(features); + validate(features); runparams.use_polyglossia = features.usePolyglossia(); texrow.reset(new TexRow()); texrow->newline(); diff --git a/status.22x b/status.22x index 29a63088bb..6d48a2899c 100644 --- a/status.22x +++ b/status.22x @@ -79,6 +79,9 @@ What's new - The '|' special character in index insets must no longer be inserted via TeX-mode. +- Fix preview of language switching commands for single paragraphs in some + corner cases. + * LYX2LYX -- 2.39.5