From 2943f1e88085fc8b94dd769e0637eaedc651afc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 11 Apr 2009 13:00:10 +0000 Subject: [PATCH] * InsetGraphics.cpp (findTargetFormat): - consider XeTeX. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29205 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetGraphics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index 04955ab6a3..33fc1e5c86 100644 --- a/src/insets/InsetGraphics.cpp +++ b/src/insets/InsetGraphics.cpp @@ -101,8 +101,9 @@ namespace { /// Note that \p format may be unknown (i. e. an empty string) string findTargetFormat(string const & format, OutputParams const & runparams) { - // Are we using latex or pdflatex? - if (runparams.flavor == OutputParams::PDFLATEX) { + // Are we using latex or XeTeX/pdflatex? + if (runparams.flavor == OutputParams::PDFLATEX + || runparams.flavor == OutputParams::XETEX) { LYXERR(Debug::GRAPHICS, "findTargetFormat: PDF mode"); Format const * const f = formats.getFormat(format); // Convert vector graphics to pdf