X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftabular.C;h=68696aadd9d5457263079e8d33861969064b21eb;hb=29f01faa17495e3d80c08f234c8f049c7d699ac1;hp=c20ac65f054dd7d5091678c969dc3939fbdbfdc5;hpb=043298544c6338b3de3503876d17054faef149fc;p=lyx.git diff --git a/src/tabular.C b/src/tabular.C index c20ac65f05..68696aadd9 100644 --- a/src/tabular.C +++ b/src/tabular.C @@ -1468,19 +1468,8 @@ void LyXTabular::OldFormatRead(BufferParams const & bp, || token == "\\end_deeper") { lex.pushToken(token); -#ifndef NO_COMPABILITY - // Here we need to insert the inset_ert_contents into the last - // cell of the tabular. - owner_->bufferOwner()->insertErtContents(par, pos); -#endif break; } -#ifndef NO_COMPABILITY - if (token == "\\newline") - // Here we need to insert the inset_ert_contents into the last - // cell of the tabular. - owner_->bufferOwner()->insertErtContents(par, pos, false); -#endif if (owner_->bufferOwner()->parseSingleLyXformat2Token(lex, par, return_par, token, pos, @@ -2208,7 +2197,7 @@ int LyXTabular::TeXRow(ostream & os, int const i, Buffer const * buf, InsetText * inset = GetCellInset(cell); bool rtl = inset->paragraph()->isRightToLeftPar(buf->params) && - inset->paragraph()->size() > 0 && GetPWidth(cell).zero(); + !inset->paragraph()->empty() && GetPWidth(cell).zero(); if (rtl) os << "\\R{";