mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
attempt to fix bug 5282:
* 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
This commit is contained in:
parent
165e8e08ce
commit
4cb08129a3
@ -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 << '}';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user