From 84328c85388cc577d8435066062ef9bbb9711af1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 21 Jul 2018 18:28:18 +0200 Subject: [PATCH] Amend 8651cd89: only full top/bottom rules are thicker --- src/insets/InsetTabular.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index ebe4ba681a..9ff12368f3 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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 -- 2.39.2