]> git.lyx.org Git - features.git/commitdiff
Fix crash with updateLabels(). I changed the the test in the assertion but endless...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 14 Aug 2007 14:31:41 +0000 (14:31 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 14 Aug 2007 14:31:41 +0000 (14:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19560 a592a061-630c-0410-9148-cb99ea01b6c8

src/DocIterator.cpp

index ea954acaf2c04d5df5a498c4ba35228d65f8b41e..0e8ca6ea8c91ee264e81266ec7398d0d44070a38 100644 (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;