Abdelrazak Younes wrote:

> Abdelrazak Younes wrote:
>> Alfredo Braunstein wrote:
>>> Abdelrazak Younes wrote:
>>>
>>>> Either Alfredo or JMarc I guess...
>>>
>>> Pretty sure it's not mine... :-)
>> 
>> It's JMArc then :-)
>> 
>> Here is a fix. What is the purpose of this DocIterator::forwardIdx()?
>> If we are within a cell, pit_ and pos_ are not important.
> 
> Hum, apparently they are. Another assertion happens in the next
> iteration in updateLabels(Buffer const & buf, ParIterator & parit):

Yes, they have meaning in tabulars (the only multi-text insets we have),

inset -> tabular
idx -> tabular cell
pit -> paragraph inside this cell
pos -> position inside the paragraph

> BOOST_ASSERT(parit.pit() == 0);

It seems that there's no convenient way to iterate over all cells of a
tabular with a DocIterator :-/ The assert in forwardIdx is correct
considering that the past-the-end idx doesn't lead to a valid cursor
position.

A/


Reply via email to