From: Jean-Marc Lasgouttes Date: Thu, 6 Jun 2024 12:32:00 +0000 (+0200) Subject: Do not draw appendix lines below en of document X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7acfbe0fccc7;p=lyx.git Do not draw appendix lines below en of document This bug is pretty old, but it was not visible because the grey area below the document would overwrite it. It would be better to close the frame at the end of the document, but this is for later. --- diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 77e0ff67e6..b8c0a67b5e 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -314,7 +314,7 @@ void RowPainter::paintAppendix() const y += 2 * defaultRowHeight(); pi_.pain.line(1, y, 1, yo_ + row_.height(), Color_appendix); - pi_.pain.line(tm_.width() - 2, y, tm_.width() - 2, yo_ + row_.height(), Color_appendix); + pi_.pain.line(tm_.width() - 2, y, tm_.width() - 2, yo_ + row_.descent(), Color_appendix); }