]> git.lyx.org Git - features.git/commitdiff
We do need the encoding here now, due to how InPreamble works.
authorRichard Heck <rgheck@comcast.net>
Tue, 15 Jun 2010 18:26:38 +0000 (18:26 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 15 Jun 2010 18:26:38 +0000 (18:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34679 a592a061-630c-0410-9148-cb99ea01b6c8

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;