From 401ec4b50b025d161ed3cd77b497212dbd098a6f Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Wed, 7 May 2008 09:37:22 +0000 Subject: [PATCH] no vertical lines with booktabs git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24654 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 3676b31bcf..6e568c9610 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -1081,6 +1081,9 @@ bool Tabular::rowBottomLine(row_type r) const bool Tabular::columnLeftLine(col_type c) const { + if (use_booktabs) + return false; + int nrows_left = 0; int total = 0; row_type const nrows = row_info.size(); @@ -1099,6 +1102,9 @@ bool Tabular::columnLeftLine(col_type c) const bool Tabular::columnRightLine(col_type c) const { + if (use_booktabs) + return false; + int nrows_right = 0; int total = 0; row_type const nrows = row_info.size(); @@ -2181,7 +2187,7 @@ int Tabular::latex(odocstream & os, OutputParams const & runparams) const os << "\\begin{tabular}{"; for (col_type i = 0; i < column_info.size(); ++i) { - if (!use_booktabs && columnLeftLine(i)) + if (columnLeftLine(i)) os << '|'; if (!column_info[i].align_special.empty()) { os << column_info[i].align_special; @@ -2232,7 +2238,7 @@ int Tabular::latex(odocstream & os, OutputParams const & runparams) const } } // end if else !column_info[i].p_width } // end if else !column_info[i].align_special - if (!use_booktabs && columnRightLine(i)) + if (columnRightLine(i)) os << '|'; } os << "}\n"; -- 2.39.2