From dd6d173082d534735404f715d5883f0fdfd4af83 Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Fri, 4 Jul 2008 13:18:28 +0000 Subject: [PATCH] fix http://bugzilla.lyx.org/show_bug.cgi?id=4998 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25445 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 940526f592..11d0fe6f2e 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -1865,7 +1865,6 @@ int Tabular::TeXCellPreamble(odocstream & os, idx_type cell, bool & ismulticol) && leftLine(cellIndex(r, nextcol)); bool coldouble = colright && nextcolleft; bool celldouble = rightLine(cell) && nextcellleft; - bool prevcellright = c > 0 && rightLine(cellIndex(r, c - 1)); ismulticol = isMultiColumn(cell) || (c == 0 && colleft != leftLine(cell)) || ((colright || nextcolleft) && !rightLine(cell) && !nextcellleft) @@ -1873,7 +1872,7 @@ int Tabular::TeXCellPreamble(odocstream & os, idx_type cell, bool & ismulticol) || (coldouble != celldouble); if (ismulticol) { os << "\\multicolumn{" << columnSpan(cell) << "}{"; - if (leftLine(cell) || prevcellright) + if (c ==0 && leftLine(cell)) os << '|'; if (!cellInfo(cell).align_special.empty()) { os << cellInfo(cell).align_special;