]> git.lyx.org Git - features.git/commitdiff
attempt to fix bug 5282:
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 27 Sep 2008 15:32:43 +0000 (15:32 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 27 Sep 2008 15:32:43 +0000 (15:32 +0000)
* src/insets/InsetTabular.cpp:
- keep track of encoding after passing a copy of the OutputParams.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26592 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index b87aa84cf513a4b0918e1a540084aadae2e851fb..433d22fbd9740f6553e4ab1752cb0e7e60c6f822 100644 (file)
@@ -2168,7 +2168,7 @@ int Tabular::TeXRow(odocstream & os, row_type i,
        idx_type cell = cellIndex(i, 0);
        shared_ptr<InsetTableCell> inset = cellInset(cell);
        Paragraph const & par = inset->paragraphs().front();
-       string const lang =     par.getParLanguage(buffer().params())->lang();
+       string const lang = par.getParLanguage(buffer().params())->lang();
 
        //output the top line
        int ret = TeXTopHLine(os, i, lang);
@@ -2218,11 +2218,12 @@ int Tabular::TeXRow(odocstream & os, row_type i,
                // pass to the OutputParams that we are in a cell and
                // which alignment we have set.
                // InsetNewline needs this context information.
-               OutputParams newrp = runparams;
+               OutputParams newrp(runparams);
                newrp.inTableCell = (getAlignment(cell) == LYX_ALIGN_BLOCK)
                                    ? OutputParams::PLAIN
                                    : OutputParams::ALIGNED;
                ret += inset->latex(os, newrp);
+               runparams.encoding = newrp.encoding;
                if (rtl)
                        os << '}';