From 4080450341a4ed1cec0e4f72d9c917d2c7378157 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 14 Aug 2007 14:31:41 +0000 Subject: [PATCH] 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 --- src/DocIterator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DocIterator.cpp b/src/DocIterator.cpp index ea954acaf2..0e8ca6ea8c 100644 --- a/src/DocIterator.cpp +++ b/src/DocIterator.cpp @@ -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; -- 2.39.2