From: Juergen Spitzmueller Date: Wed, 1 Aug 2018 13:46:00 +0000 (+0200) Subject: Pass languages also if babel is provided by class. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3221 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1cf1eaf1fec4bacdf066a24112cc8bd89a0e4b7d;p=features.git Pass languages also if babel is provided by class. This is needed to load all used languages. --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 3819e6d92b..503cc7792e 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -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())