From: Jean-Marc Lasgouttes Date: Mon, 13 Jan 2020 16:42:31 +0000 (+0100) Subject: Do make changebar shorter for last row X-Git-Tag: lyx-2.4.0dev-acb2ca7b~1322 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cbabff4686dd8c26383e294131243b7dbd0bc960;p=features.git Do make changebar shorter for last row I do not know what the intent was, but it is ugly. --- diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index b05b143fb4..2216b21077 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -293,11 +293,7 @@ void RowPainter::paintChange(Row::Element const & e) const void RowPainter::paintChangeBar() const { - int const height = tm_.isLastRow(row_) - ? row_.ascent() - : row_.height(); - - pi_.pain.fillRectangle(5, yo_ - row_.ascent(), 3, height, Color_changebar); + pi_.pain.fillRectangle(5, yo_ - row_.ascent(), 3, row_.height(), Color_changebar); }