Also consider main language in hasOnlyPolyglossiaLanguages() and hasPolyglossiaExclusiveLanguages()

This commit is contained in:
Juergen Spitzmueller 2013-11-14 17:40:47 +01:00
parent 68a4a53b36
commit 3ccb2a1691

View File

@ -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();