From 3229618c2009a111b9a8e8fa1b5d9084113f9a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 17 Mar 2009 09:26:37 +0000 Subject: [PATCH] * Fix encoding problem following a Listing (bug 5783). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28831 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetListings.cpp | 1 - src/output_latex.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index 115f98cee3..50558491f2 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -238,7 +238,6 @@ int InsetListings::latex(odocstream & os, OutputParams const & runparams) const OutputParams rp = runparams; rp.moving_arg = true; docstring const caption = getCaption(rp); - runparams.encoding = rp.encoding; if (param_string.empty() && caption.empty()) os << "\n\\begin{lstlisting}\n"; else { diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 893021349d..8f710fa1a3 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -452,11 +452,8 @@ TeXOnePar(Buffer const & buf, // With CJK, only add switch if we have CJK content at the beginning // of the paragraph if (encoding->package() != Encoding::CJK || i == 0) { - OutputParams tmp_rp = runparams; - runparams.moving_arg = false; pair enc_switch = switchEncoding(os, bparams, runparams, *encoding); - runparams = tmp_rp; // the following is necessary after a CJK environment in a multilingual // context (nesting issue). if (par_language->encoding()->package() == Encoding::CJK &&