From 13a6be1f9c4668dd661bc197df226b20e420e24b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 6 Jun 2024 14:32:00 +0200 Subject: [PATCH] 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. (cherry picked from commit 7acfbe0fccc729dcf5d910a4049b25e9943329fc) (cherry picked from commit c96d3a03400893f440dca7e68ed87bd70bea0b39) --- src/RowPainter.cpp | 4 ++-- status.24x | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 77e0ff67e6..19d83c13a3 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -313,8 +313,8 @@ void RowPainter::paintAppendix() const if (par_.params().startOfAppendix()) 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(1, y, 1, yo_ + row_.descent(), Color_appendix); + pi_.pain.line(tm_.width() - 2, y, tm_.width() - 2, yo_ + row_.descent(), Color_appendix); } diff --git a/status.24x b/status.24x index 154a255304..a62ec4aac1 100644 --- a/status.24x +++ b/status.24x @@ -43,6 +43,8 @@ What's new - fix display of equation numbers in right-to-left context. +- fix overflow of appendix red frame in document-bottom grey area. + * INTERNALS -- 2.39.5