]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
added a parseError signal to Buffer and use it
[lyx.git] / src / text3.C
index 4cb6d8a32295874db017694f8921b7eed94735c3..8ded18b4d1ba5ae66e988253ddcbd4e0c1717398 100644 (file)
@@ -343,10 +343,11 @@ void LyXText::cursorNext()
                }
        }
        bv()->screen().draw(bv()->text, bv(), new_y);
-       if (boost::next(cursor.row()) != rows().end()) {
+
+       RowList::iterator next_row = boost::next(cursor.row());
+       if (next_row != rows().end()) {
                LyXCursor cur;
-               setCursor(cur, boost::next(cursor.row())->par(),
-                         boost::next(cursor.row())->pos(), false);
+               setCursor(cur, next_row->par(), next_row->pos(), false);
                if (cur.y() < top_y() + bv()->workHeight()) {
                        cursorDown(true);
                }