From fa8dae4201fc25da685a21de0f8968678df8f119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 23 Nov 2010 11:44:40 +0000 Subject: [PATCH] Try to disambibuate the use of "xetex". Here, we actually require polyglossia. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36442 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferParams.cpp | 2 +- src/LaTeXFeatures.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 640f3544d6..fab62fb9ec 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -1188,7 +1188,7 @@ void BufferParams::validate(LaTeXFeatures & features) const } if (useXetex) - features.require("xetex"); + features.require("polyglossia"); if (language->lang() == "vietnamese") features.require("vietnamese"); diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 530275860b..f694e53797 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -296,7 +296,7 @@ bool LaTeXFeatures::useBabel() const bool LaTeXFeatures::usePolyglossia() const { return (lyxrc.language_package_selection == LyXRC::LP_AUTO) - && isRequired("xetex") + && isRequired("polyglossia") && isAvailable("polyglossia") && ((bufferParams().language->lang() != lyxrc.default_language && !bufferParams().language->polyglossia().empty())