]> 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 12:38:20 +0000 (14:38 +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.

src/RowPainter.cpp

index 77e0ff67e61a005f33a11e7b21c43bf735733226..b8c0a67b5e87ae47f76c56f5212511cf6e3f18b6 100644 (file)
@@ -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);
 }