]> git.lyx.org Git - features.git/blobdiff - src/graphics/PreviewLoader.cpp
allow proper preview when using literate in combination with nonTeXFonts
[features.git] / src / graphics / PreviewLoader.cpp
index e4a5cc2e49944933cdb8ca3232c82cd52ca17f65..5d468b9e955ba5c421de02b574c8953c824f5519 100644 (file)
@@ -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)