From 6ddefebc09b500d0fb6d3c0fcc4e0a0f8e33c9fc Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 15 Jun 2010 18:26:38 +0000 Subject: [PATCH] We do need the encoding here now, due to how InPreamble works. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34679 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/graphics/PreviewLoader.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index 1981a420dd..661587ea82 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -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; -- 2.39.2