]> git.lyx.org Git - features.git/commitdiff
Amend 8651cd89: only full top/bottom rules are thicker
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 21 Jul 2018 16:28:18 +0000 (18:28 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 21 Jul 2018 18:07:33 +0000 (20:07 +0200)
src/insets/InsetTabular.cpp

index ebe4ba681a7af5df8a2b8f86f7745d19068bd413..9ff12368f35b9b52732162bff94dd8c7b3664370 100644 (file)
@@ -4235,12 +4235,13 @@ void InsetTabular::drawCellLines(PainterInfo & pi, int x, int y,
        // Top
        bool drawline = tabular.topLine(cell)
                || (row > 0 && tabular.bottomLine(tabular.cellAbove(cell)));
-       bool heavy = tabular.use_booktabs && row == 0 && tabular.topLine(cell);
+       bool heavy = tabular.use_booktabs && row == 0 && tabular.rowTopLine(row);
        tabline(pi, x, y, x + w, y, drawline, heavy);
 
        // Bottom
        drawline = tabular.bottomLine(cell);
-       heavy = tabular.use_booktabs && row == tabular.nrows() - 1 && drawline;
+       heavy = tabular.use_booktabs && row == tabular.nrows() - 1
+               && tabular.rowBottomLine(row);
        tabline(pi, x, y + h, x + w, y + h, drawline, heavy);
 
        // Left