Handle secondary babel languages when main language is CJK

This commit is contained in:
Juergen Spitzmueller 2013-05-20 11:07:47 +02:00
parent eb314aa5be
commit b65d5f2012

View File

@ -707,7 +707,8 @@ void Font::validate(LaTeXFeatures & features) const
// FIXME: Do something for background and soul package?
if (((features.usePolyglossia() && lang_->polyglossia() != doc_language->polyglossia())
|| (features.useBabel() && lang_->babel() != doc_language->babel()))
|| (features.useBabel() && lang_->babel() != doc_language->babel())
|| (doc_language->encoding()->package() == Encoding::CJK && lang_ != doc_language))
&& lang_ != ignore_language
&& lang_ != latex_language)
{