Alfredo Braunstein wrote:
>>> Just commit and we solve it later if there is any problem at all
>>> ;-)
>> 
>> Hmmm. Your last commit means that now I don't even enter the loop.
>>
>> Even changing to the explicit doesn't help:
>> 
>>         InsetBase & inset = owner->buffer()->inset();
>>         InsetIterator it  = inset_iterator_begin(inset);
>>         InsetIterator const end = inset_iterator_begin(inset);
>                                                    ^^^^^
> is this just an error in your post or in the test you've made?

Doh. Recompiling...

Interestingly, the original does not work either:

        InsetIterator it(owner->buffer()->inset());
        for (; it; ++it) {
                lyxerr << "loop" << std::endl;

(I understand why not.)

Ok, I have now recompiled...

I now see the problem you alluded to here:
| Put your cursor in a second level inset (for instance in 
| the green branch in trial.lyx) and then all-insets-togle 
| close.

(Actually activated the green branch inset rather than
all-insets-toggle. Not that that is important here.)

Nonetheless, I'll commit and we can proceed from there.

-- 
Angus

Reply via email to