[LyX/master] Fixup 051b6ce6: fix drawing of EndLabelString
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sun Feb 14 19:06:13 UTC 2021
commit 8117172d8abc28c9ffb3b43746ce447e64e36208
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Sun Feb 14 20:07:19 2021 +0100
Fixup 051b6ce6: fix drawing of EndLabelString
Fixes bug #12122.
---
src/RowPainter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp
index e378f43..99393ca 100644
--- a/src/RowPainter.cpp
+++ b/src/RowPainter.cpp
@@ -509,8 +509,8 @@ void RowPainter::paintLast() const
FontInfo const font = labelFont(true);
FontMetrics const & fm = theFontMetrics(font);
docstring const & str = par_.layout().endlabelstring();
- double const x = row_.isRTL() ? x_ - fm.width(str) : x_;
- pi_.pain.text(int(x), yo_, str, font);
+ double const x = row_.isRTL() ? row_.left_margin - fm.width(str) : row_.width();
+ pi_.pain.text(xo_ + x, yo_, str, font);
break;
}
More information about the lyx-cvs
mailing list