mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// otherwise try to move on one cell if possible
|
// otherwise move on one cell
|
||||||
if (idx() < lastidx()) {
|
|
||||||
//lyxerr << "... next idx" << endl;
|
//lyxerr << "... next idx" << endl;
|
||||||
++idx();
|
++idx();
|
||||||
pit() = 0;
|
pit() = 0;
|
||||||
pos() = 0;
|
pos() = 0;
|
||||||
return;
|
|
||||||
}
|
|
||||||
BOOST_ASSERT(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user