From 82d23e85387ec03a6258d6e1e33dc1f77447fa5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Vigna?= Date: Fri, 22 Feb 2002 14:11:32 +0000 Subject: [PATCH] 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 --- src/ChangeLog | 5 +++++ src/text.C | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index d31da60419..eda9f40668 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-02-22 Juergen Vigna + + * text.C (leftMargin): don't add an indent for paragraphs inside + tabular cells (fix #208). + 2002-02-21 José Matos * tabular.C (docBook): fixed support for long tables. diff --git a/src/text.C b/src/text.C index 044a051779..c7778be8b8 100644 --- a/src/text.C +++ b/src/text.C @@ -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))