Pass languages also if babel is provided by class.

This is needed to load all used languages.
This commit is contained in:
Juergen Spitzmueller 2018-08-01 15:46:00 +02:00
parent abaccece15
commit 1cf1eaf1fe

View File

@ -1697,7 +1697,7 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
bool const use_babel = features.useBabel() && !features.isProvided("babel");
bool const use_polyglossia = features.usePolyglossia();
bool const global = lyxrc.language_global_options;
if (use_babel || (use_polyglossia && global)) {
if (features.useBabel() || (use_polyglossia && global)) {
language_options << features.getBabelLanguages();
if (!language->babel().empty()) {
if (!language_options.str().empty())