]> git.lyx.org Git - features.git/commitdiff
same here
authorAndré Pönitz <poenitz@gmx.net>
Thu, 14 Aug 2003 14:19:45 +0000 (14:19 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 14 Aug 2003 14:19:45 +0000 (14:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7546 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfunc.C

index c9245a9ce928ede6548faffc00aba05bd7b16a9a..8c6840a28818075090b045361c6467b3e9fafb84 100644 (file)
@@ -902,7 +902,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
                                goto exit_with_message;
                        } else if (result == FINISHED_UP) {
                                RowList::iterator const irow = view()->text->cursorIRow();
-                               if (irow != view()->text->rows().begin()) {
+                               if (irow != view()->text->firstRow()) {
 #if 1
                                        view()->text->setCursorFromCoordinates(
                                                view()->text->cursor.ix() + inset_x,
@@ -920,7 +920,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
                                goto exit_with_message;
                        } else if (result == FINISHED_DOWN) {
                                RowList::iterator const irow = view()->text->cursorIRow();
-                               if (boost::next(irow) != view()->text->rows().end()) {
+                               if (irow != view()->text->lastRow()) {
 #if 1
                                        view()->text->setCursorFromCoordinates(
                                                view()->text->cursor.ix() + inset_x,
@@ -964,7 +964,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
                                        }
                                        goto exit_with_message;
                                case LFUN_DOWN:
-                                       if (boost::next(view()->text->cursorRow()) != view()->text->rows().end())
+                                       if (view()->text->cursorRow() != view()->text->lastRow())
                                                view()->text->cursorDown(view());
                                        else
                                                view()->text->cursorRight(view());