]> git.lyx.org Git - lyx.git/commitdiff
Do not draw appendix lines below en of document
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Jun 2024 12:32:00 +0000 (14:32 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Jun 2024 16:18:02 +0000 (18:18 +0200)
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
status.24x

index 77e0ff67e61a005f33a11e7b21c43bf735733226..19d83c13a33b177ebe646dead3d24d3cf8489220 100644 (file)
@@ -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);
 }
 
 
index 154a255304b2ddf51f88141f284eaf527bf204f8..a62ec4aac1deebe985d8d3439631bc8597fc7f86 100644 (file)
@@ -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