From: André Pönitz Date: Thu, 14 Aug 2003 14:19:45 +0000 (+0000) Subject: same here X-Git-Tag: 1.6.10~16289 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=976af41516ebd8f6e38c28250f8f791979026a0e;p=features.git same here git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7546 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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());