Kayvan's patch (crash fix)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8507 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2004-03-21 10:16:39 +00:00
parent 87a0c7598f
commit f16a17fa42
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,8 @@
2004-03-21 Alfredo Braunstein <abraunst@lyx.org>
* tabular.C (TeXRow): crash fix (from Kayvan and André)
2004-03-19 André Pönitz <poenitz@gmx.net>
        * cursor.[Ch] (reset): take main text inset as argument

View File

@ -2007,7 +2007,8 @@ int LyXTabular::TeXRow(ostream & os, int i, Buffer const & buf,
ret += TeXCellPreamble(os, cell);
InsetText & inset = getCellInset(cell);
bool rtl = inset.text_.isRTL(inset.paragraphs().front())
Paragraph const & par = inset.paragraphs().front();
bool rtl = par.isRightToLeftPar(buf.params())
&& !inset.paragraphs().begin()->empty()
&& getPWidth(cell).zero();