mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix crash with updateLabels(). I changed the the test in the assertion but endless loops should be equally prevented with this version.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19560 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
249e97e216
commit
4080450341
@ -375,8 +375,7 @@ void DocIterator::forwardIdx()
|
|||||||
CursorSlice & tip = top();
|
CursorSlice & tip = top();
|
||||||
|
|
||||||
//prevent endless loops
|
//prevent endless loops
|
||||||
BOOST_ASSERT(tip.idx() < lastidx());
|
BOOST_ASSERT(tip.idx() < tip.nargs());
|
||||||
|
|
||||||
++tip.idx();
|
++tip.idx();
|
||||||
tip.pit() = 0;
|
tip.pit() = 0;
|
||||||
tip.pos() = 0;
|
tip.pos() = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user