]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #6712: LyX 2 does not restore encoding after a text inset
authorEnrico Forestieri <forenr@lyx.org>
Sat, 22 May 2010 22:42:32 +0000 (22:42 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 22 May 2010 22:42:32 +0000 (22:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34456 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetText.cpp

index 8ef61169083bbca3cfcef248dd4d7229e9ca153a..dd053d017b71938a2eacc05e37bd66912616391d 100644 (file)
@@ -405,6 +405,7 @@ int InsetText::latex(odocstream & os, OutputParams const & runparams) const
        TexRow texrow;
        latexParagraphs(buffer(), text_, os, texrow, rp);
        rows += texrow.rows();
+       runparams.encoding = rp.encoding;
 
        if (!il.latexname().empty()) {
                if (il.latextype() == InsetLayout::COMMAND) {