From efe93782fedc9b7a8356a9e3c99013322f712ded Mon Sep 17 00:00:00 2001 From: Julien Rioux Date: Wed, 30 Mar 2011 00:34:09 +0000 Subject: [PATCH] allow proper preview when using literate in combination with nonTeXFonts (we can't rely on bufferFormat for this) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38147 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/graphics/PreviewLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index e4a5cc2e49..5d468b9e95 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -603,7 +603,7 @@ void PreviewLoader::Impl::startLoading(bool wait) << theApp()->hexName(fg) << ' ' << theApp()->hexName(bg); // FIXME what about LuaTeX? - if (buffer_.bufferFormat() == "xetex") + if (buffer_.params().useNonTeXFonts) cs << " xelatex"; // DVI output fails sometimes with hyperref // (probably a preview-latex/hyperref bug) -- 2.39.2