]> git.lyx.org Git - features.git/commitdiff
Use Buffer::validate() when previewing single paragraph
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 31 Oct 2016 17:46:06 +0000 (18:46 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 1 Nov 2016 07:29:28 +0000 (08:29 +0100)
We used to use BufferParams::validate(), which does not validate the
paragraphs.

src/Buffer.cpp
status.22x

index 4d3088458f8868cb7ff393a3bc0f697652d4b40f..3956896d3913d4a6f5e59cc701fbcbe8636634be 100644 (file)
@@ -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();
index 29a63088bb000012069a2a55a50b37b107fb8f80..6d48a2899c516d8068882939ae0fa8a0c9bb06f5 100644 (file)
@@ -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