diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 4dcab3d7cb..cc3475759d 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -875,7 +875,7 @@ pair switchEncoding(odocstream & os, BufferParams const & bparams, OutputParams const & runparams, Encoding const & newEnc, bool force) { - Encoding const oldEnc = *runparams.encoding; + Encoding const & oldEnc = *runparams.encoding; bool moving_arg = runparams.moving_arg; if (!force && ((bparams.inputenc != "auto" && bparams.inputenc != "default") || moving_arg))