]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.C
move some selection related stuff over to textcursor.C
[lyx.git] / src / rowpainter.C
index 718a1f7ac9900995c7a092f31eb37c66e1c4dc63..500c2293fc747793eb87fde2a73947670317a266 100644 (file)
@@ -314,8 +314,8 @@ void RowPainter::paintSelection()
        int const endx = text_.selection.end.x();
        int const starty = text_.selection.start.y();
        int const endy = text_.selection.end.y();
-       RowList::iterator startrow = text_.selection.start.row();
-       RowList::iterator endrow = text_.selection.end.row();
+       RowList::iterator startrow = text_.getRow(text_.selection.start);
+       RowList::iterator endrow = text_.getRow(text_.selection.end);
 
        if (text_.bidi_same_direction) {
                int x;