]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Make document_language non-mutable
[lyx.git] / src / Converter.cpp
index 8085b15a8505b23d0f24cf50ccb971bc1215e9d1..eca6a4e178949414917a1d874339d3028bfce1f3 100644 (file)
@@ -343,6 +343,7 @@ bool Converters::convert(Buffer const * buffer,
                        string() : buffer->params().bibtex_command;
                runparams.index_command = (buffer->params().index_command == "default") ?
                        string() : buffer->params().index_command;
+               runparams.document_language = buffer->params().language->babel();
        }
 
        // Some converters (e.g. lilypond) can only output files to the
@@ -638,8 +639,6 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command,
        buffer.setBusy(true);
        buffer.message(_("Running LaTeX..."));
 
-       runparams.document_language = buffer.params().language->babel();
-
        // do the LaTeX run(s)
        string const name = buffer.latexName();
        LaTeX latex(command, runparams, FileName(makeAbsPath(name)),