]> git.lyx.org Git - features.git/commitdiff
Fix commit 32edb659
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 26 Oct 2015 10:38:01 +0000 (11:38 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 26 Oct 2015 10:39:58 +0000 (11:39 +0100)
A bad test meant an embarassing red line on the left.

This is still bug #9807.

src/TextMetrics.cpp

index 73bd4f8baa1303916e51108b078b9592468a71d2..2ec798ffe48de2b321709c7bc659af68834a6a54 100644 (file)
@@ -1956,7 +1956,7 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const
                        rp.paintLast();
                if (i == 0 && is_rtl)
                        rp.paintFirst();
-               rp.paintTooLargeMarks(row_x < row.left_x(),
+               rp.paintTooLargeMarks(row_x + row.left_x() < 0,
                                      row_x + row.right_x() > bv_->workWidth());
                y += row.descent();