]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
Fix the rest of bug 5010.
[lyx.git] / src / output_latex.cpp
index 89e0b3f8ca77ddf124df5a88a8d470d9babfc769..3e4d299262d7e2213ee75f8dd5dd6dbdcb04ceed 100644 (file)
@@ -700,10 +700,10 @@ TeXOnePar(Buffer const & buf,
        // the inset, and we're using "auto" or "default" encoding, the encoding
        // should be set back to that local_font's encoding.
        if (nextpit == paragraphs.end() && runparams_in.local_font != 0
+           && runparams_in.encoding != runparams_in.local_font->language()->encoding()
            && (bparams.inputenc == "auto" || bparams.inputenc == "default")) {
                runparams_in.encoding = runparams_in.local_font->language()->encoding();
                os << setEncoding(runparams_in.encoding->iconvName());
-
        }
        // Otherwise, the current encoding should be set for the next paragraph.
        else