]> git.lyx.org Git - features.git/commitdiff
Do make changebar shorter for last row
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jan 2020 16:42:31 +0000 (17:42 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jan 2020 16:42:31 +0000 (17:42 +0100)
I do not know what the intent was, but it is ugly.

src/RowPainter.cpp

index b05b143fb481e2a00b2214b6bcc3eebd75612847..2216b2107781046cf0548952de937380871add98 100644 (file)
@@ -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);
 }