]> git.lyx.org Git - lyx.git/commitdiff
Reset lang_options before reading headers
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 26 Aug 2024 05:35:34 +0000 (07:35 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 26 Aug 2024 05:35:34 +0000 (07:35 +0200)
src/Buffer.cpp

index 6adafdf18ecfeaf5afd6173cea26750b50fb4706..fe259df8d739050412f8dc32449ee29aa4f46aba 100644 (file)
@@ -971,6 +971,8 @@ int Buffer::readHeader(Lexer & lex)
        params().lineno_opts.clear();
        params().nomencl_opts.clear();
        params().spellignore().clear();
+       params().lang_options_babel_.clear();
+       params().lang_options_polyglossia_.clear();
 
        for (int i = 0; i < 4; ++i) {
                params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i];