Georg Baum <[EMAIL PROTECTED]> writes:

| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/dociterator.C,v
| retrieving revision 1.33
| diff -u -p -r1.33 dociterator.C
| --- src/dociterator.C 24 Nov 2005 16:22:39 -0000      1.33
| +++ src/dociterator.C 8 Jan 2006 11:29:26 -0000
| @@ -420,6 +420,19 @@ void DocIterator::forwardPar()
|  }
|  
|  
| +void DocIterator::forwardIdx()
| +{
| +     CursorSlice & tip = top();
| +     if (tip.idx() < lastidx()) {
| +             ++tip.idx();
| +             tip.pit() = 0;
| +             tip.pos() = 0;
| +     } else
| +             //prevent endless loops
| +             BOOST_ASSERT(false);
| +}

void DocIterator::forwardIdx()
{
        CursorSlice & tip = top();

        BOOST_ASSERT(tip.idx() < lastidx());

        ++tip.idx();
        tip.pit() = 0;
        tip.pos() = 0;
}

-- 
        Lgb

Reply via email to