From 976af41516ebd8f6e38c28250f8f791979026a0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 14 Aug 2003 14:19:45 +0000 Subject: [PATCH] same here git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7546 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfunc.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lyxfunc.C b/src/lyxfunc.C index c9245a9ce9..8c6840a288 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -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()); -- 2.39.2