]> git.lyx.org Git - features.git/commitdiff
Revert the rtl-part of r30962.
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 22 Aug 2009 17:51:41 +0000 (17:51 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 22 Aug 2009 17:51:41 +0000 (17:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31205 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.cpp

index 80a50bea2e60aaed3b58bec31784ea046b3dceb7..ef81e683aed532eb86d148b4bfcad49feb79c652 100644 (file)
@@ -680,8 +680,7 @@ void RowPainter::paintLast()
                FontInfo const font = labelFont();
                FontMetrics const & fm = theFontMetrics(font);
                docstring const & str = par_.layout().endlabelstring();
-               double const x = is_rtl ? 
-                       text_metrics_.width() - row_.width() - fm.width(str) : x_;
+               double const x = is_rtl ? x_ - fm.width(str) : x_;
                pi_.pain.text(int(x), yo_, str, font);
                break;
        }