mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
allow one past-the-end position in CursorSlice, as it eases iteration
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19760 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c0d2633b8c
commit
fbf4b51c7b
@ -102,15 +102,11 @@ void CursorSlice::forwardPos()
|
||||
return;
|
||||
}
|
||||
|
||||
// otherwise try to move on one cell if possible
|
||||
if (idx() < lastidx()) {
|
||||
// otherwise move on one cell
|
||||
//lyxerr << "... next idx" << endl;
|
||||
++idx();
|
||||
pit() = 0;
|
||||
pos() = 0;
|
||||
return;
|
||||
}
|
||||
BOOST_ASSERT(false);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user