]> git.lyx.org Git - features.git/commitdiff
Pass languages also if babel is provided by class.
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 1 Aug 2018 13:46:00 +0000 (15:46 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 1 Aug 2018 13:46:00 +0000 (15:46 +0200)
This is needed to load all used languages.

src/BufferParams.cpp

index 3819e6d92b3834414ee9479dcc58a0e1e5e70bd3..503cc7792edeb8330786e18b48659cc3a2c05350 100644 (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())