]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.C
make "make distcheck" work
[lyx.git] / src / rowpainter.C
index c9ceb39510ea8a3cc3fd47d3ab0e521b831d5cae..f4485f889b47d4a8b535e3c04ec050bf90c315f1 100644 (file)
@@ -794,7 +794,7 @@ void paintText(BufferView const & bv, ViewMetricsInfo const & vi)
                         vi.y1 -  text->getPar(vi.p1 - 1).descent());
        }
 
-       if (vi.p2 < text->paragraphs().size() - 1) {
+       if (vi.p2 < lyx::pit_type(text->paragraphs().size()) - 1) {
                text->redoParagraph(vi.p2 + 1);
                paintPar(pi, *bv.text(), vi.p2 + 1, 0,
                         vi.y2 + text->getPar(vi.p2 + 1).ascent());