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:
Abdelrazak Younes 2007-08-14 14:31:41 +00:00
parent 249e97e216
commit 4080450341

View File

@ -375,8 +375,7 @@ void DocIterator::forwardIdx()
CursorSlice & tip = top();
//prevent endless loops
BOOST_ASSERT(tip.idx() < lastidx());
BOOST_ASSERT(tip.idx() < tip.nargs());
++tip.idx();
tip.pit() = 0;
tip.pos() = 0;