]> git.lyx.org Git - features.git/blobdiff - src/graphics/PreviewLoader.cpp
We do need the encoding here now, due to how InPreamble works.
[features.git] / src / graphics / PreviewLoader.cpp
index 1981a420dd77bafabd19bc9cf5ab60e66b600123..661587ea82bf26f0566ad91adf5cbb6205e24aab 100644 (file)
@@ -676,9 +676,7 @@ void PreviewLoader::Impl::finishedGenerating(pid_t pid, int retval)
 void PreviewLoader::Impl::dumpPreamble(odocstream & os) const
 {
        // Dump the preamble only.
-       // We don't need an encoding for runparams since it is not used by
-       // the preamble.
-       OutputParams runparams(0);
+       OutputParams runparams(&buffer_.params().encoding());
        runparams.flavor = OutputParams::LATEX;
        runparams.nice = true;
        runparams.moving_arg = true;