wrap more accesses to LyXText::rowlist_

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7545 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-08-14 14:16:05 +00:00
parent 55a3d84728
commit 02ebfa452a

View File

@ -830,7 +830,7 @@ InsetOld::RESULT InsetText::localDispatch(FuncRequest const & cmd)
break;
case LFUN_PRIOR:
if (crow() == text_.rows().begin())
if (crow() == text_.firstRow())
result = FINISHED_UP;
else {
text_.cursorPrevious();
@ -840,7 +840,7 @@ InsetOld::RESULT InsetText::localDispatch(FuncRequest const & cmd)
break;
case LFUN_NEXT:
if (boost::next(crow()) == text_.rows().end())
if (crow() == text_.lastRow())
result = FINISHED_DOWN;
else {
text_.cursorNext();
@ -1293,7 +1293,7 @@ InsetText::moveLeftIntern(BufferView * bv, bool front,
InsetOld::RESULT InsetText::moveUp(BufferView * bv)
{
if (crow() == text_.rows().begin())
if (crow() == text_.firstRow())
return FINISHED_UP;
text_.cursorUp(bv);
text_.clearSelection();
@ -1303,7 +1303,7 @@ InsetOld::RESULT InsetText::moveUp(BufferView * bv)
InsetOld::RESULT InsetText::moveDown(BufferView * bv)
{
if (boost::next(crow()) == text_.rows().end())
if (crow() == text_.lastRow())
return FINISHED_DOWN;
text_.cursorDown(bv);
text_.clearSelection();