From 3ccb2a1691a8c08a437295dac5b16c552124553c Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 14 Nov 2013 17:40:47 +0100 Subject: [PATCH] Also consider main language in hasOnlyPolyglossiaLanguages() and hasPolyglossiaExclusiveLanguages() --- src/LaTeXFeatures.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index b53d1a33f4..8ddd345bb6 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -600,6 +600,10 @@ bool LaTeXFeatures::hasLanguages() const bool LaTeXFeatures::hasOnlyPolyglossiaLanguages() const { + // first the main language + if (params_.language->polyglossia().empty()) + return false; + // now the secondary languages LanguageList::const_iterator const begin = UsedLanguages_.begin(); for (LanguageList::const_iterator cit = begin; cit != UsedLanguages_.end(); @@ -613,6 +617,10 @@ bool LaTeXFeatures::hasOnlyPolyglossiaLanguages() const bool LaTeXFeatures::hasPolyglossiaExclusiveLanguages() const { + // first the main language + if (params_.language->isPolyglossiaExclusive()) + return true; + // now the secondary languages LanguageList::const_iterator const begin = UsedLanguages_.begin(); for (LanguageList::const_iterator cit = begin; cit != UsedLanguages_.end();