]> git.lyx.org Git - features.git/commitdiff
InsetTabular.cpp: check for top and bottom lines, fixes http://bugzilla.lyx.org/show_...
authorUwe Stöhr <uwestoehr@web.de>
Fri, 15 Feb 2008 00:28:42 +0000 (00:28 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Fri, 15 Feb 2008 00:28:42 +0000 (00:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23011 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index ebb9f0adbef19e21bdd314d8c32d8414ba71ef4d..2b9d624b9e3546c5cad770244d13713725d7881f 100644 (file)
@@ -1962,7 +1962,7 @@ int Tabular::TeXTopHLine(odocstream & os, row_type row) const
                if (topLine(i))
                        ++tmp;
        }
-       if (use_booktabs && row == 0) {
+       if (use_booktabs && row == 0 && topLine(row)) {
                os << "\\toprule ";
        } else if (tmp == n - fcell) {
                os << (use_booktabs ? "\\midrule " : "\\hline ");
@@ -1998,7 +1998,7 @@ int Tabular::TeXBottomHLine(odocstream & os, row_type row) const
                if (bottomLine(i))
                        ++tmp;
        }
-       if (use_booktabs && row == rowCount() - 1) {
+       if (use_booktabs && row == rowCount() - 1 && bottomLine(row)) {
                os << "\\bottomrule";
        } else if (tmp == n - fcell) {
                os << (use_booktabs ? "\\midrule" : "\\hline");