]> git.lyx.org Git - features.git/commitdiff
Fixup 5c1d65af: proper spacing between text and label in rtl
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Jan 2019 16:13:10 +0000 (17:13 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Jan 2019 16:13:10 +0000 (17:13 +0100)
Fix bug #11425.

src/RowPainter.cpp

index 60bb5a741079c8f653d603b1262e4d19dd600441..a92461460e552dfc33a49dfa3ec0f0d3bc01230c 100644 (file)
@@ -432,7 +432,7 @@ void RowPainter::paintLabel() const
        double x = x_;
 
        if (row_.isRTL())
-               x = xo_ + tm_.width() - row_.right_margin + fm.width(layout.labelsep);
+               x = xo_ + row_.width() + fm.width(layout.labelsep);
        else
                x = x_ - fm.width(layout.labelsep) - fm.width(str);