From 1cf1eaf1fec4bacdf066a24112cc8bd89a0e4b7d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 1 Aug 2018 15:46:00 +0200 Subject: [PATCH] Pass languages also if babel is provided by class. This is needed to load all used languages. --- src/BufferParams.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())