]> 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>
Mon, 31 Oct 2016 17:50:28 +0000 (18:50 +0100)
We used to use BufferParams::validate(), which does not validate the
paragraphs.

src/Buffer.cpp

index f2dbb88840024f27885c694f39bfd7de7f0a9bce..8efa53bb4c55af72628d5fefdc6204924b4ff522 100644 (file)
@@ -3753,7 +3753,7 @@ unique_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();
                        // latex or literate
                        otexstream ots(os);