From 53e0831204872f6510a730f6dd2abbd5bff09c06 Mon Sep 17 00:00:00 2001 From: rgheck Date: Sun, 9 Aug 2009 21:44:46 +0000 Subject: [PATCH] Partially fix bug 2972: The logic was all backwards here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30962 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index f92e55bcc2..7f96ebc5cd 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -649,7 +649,6 @@ void RowPainter::paintLast() pi_.pain.line(int(x_) + 1 - length, yo_ + 2, int(x_) + 1, yo_ + 2, col, Painter::line_solid, Painter::line_thick); } - } // draw an endlabel @@ -681,9 +680,8 @@ void RowPainter::paintLast() FontInfo const font = labelFont(); FontMetrics const & fm = theFontMetrics(font); docstring const & str = par_.layout().endlabelstring(); - double const x = is_rtl ? - x_ - fm.width(str) - : - text_metrics_.rightMargin(pm_) - row_.width(); + double const x = is_rtl ? + text_metrics_.width() - row_.width() - fm.width(str) : x_; pi_.pain.text(int(x), yo_, str, font); break; } -- 2.11.4.GIT