commit 20e667e208cbbf5aa1ca291389e9e6d45a85f11b
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Mon Oct 31 18:46:06 2016 +0100

    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 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 4d30884..3956896 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -3755,7 +3755,7 @@ auto_ptr<TexRow> 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 29a6308..6d48a28 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
 

Reply via email to