don't add an indent for paragraphs inside tabular cells (fix #208)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3583 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-02-22 14:11:32 +00:00
parent 6953743e22
commit 82d23e8538
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-02-22 Juergen Vigna <jug@sad.it>
* text.C (leftMargin): don't add an indent for paragraphs inside
tabular cells (fix #208).
2002-02-21 José Matos <jamatos@fep.up.pt>
* tabular.C (docBook): fixed support for long tables.

View File

@ -838,6 +838,8 @@ int LyXText::leftMargin(BufferView * bview, Row const * row) const
&& ! row->par()->isFirstInSequence()))
&& align == LYX_ALIGN_BLOCK
&& !row->par()->params().noindent()
// in tabulars paragraphs are never indented!
&& (!row->par()->inInset() || row->par()->inInset()->owner()->lyxCode() != Inset::TABULAR_CODE)
&& (row->par()->layout ||
bview->buffer()->params.paragraph_separation ==
BufferParams::PARSEP_INDENT))