mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Also consider main language in hasOnlyPolyglossiaLanguages() and hasPolyglossiaExclusiveLanguages()
This commit is contained in:
parent
68a4a53b36
commit
3ccb2a1691
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user