I had a chance to have a look at the bug in Toc dialog. I guess I
found the source of the error.

When the updateGui is called, the function
ControlToc::getCurrentTocItem() is called. In this routine, item is
turned by

kernel().buffer().tocBackend().item(type,ParConstIterator  it);

and ParConstIterator is called by

        ParConstIterator it(kernel().bufferview()->cursor());

here is the bug: if the bufferview() is not focused,
bufferview()->cursor() returns the beginning of the paragraph list...
otherwise it returns the correct position. Do you know why the cursor
position is not red while focus is at some other window than the
buffer? Do you think we should correct the buffer/cursor functions? Or
should we find a workaround for the moment?

Ugras

On 11/25/06, Abdelrazak Younes <[EMAIL PROTECTED]> wrote:
Bo Peng wrote:
>> Good, then apply it ;-)
>
> The patch looks simple but I do not know that part of the code. Please
> evaluate the implementation, modify and apply it. It would be best if
> the 'click and move' problem Juergen and I noticed can be corrected.

OK, I've taken the time to review it and to test it. I see also the
problem you noticed but this can fixed afterwards. As I don't have much
time and I don't want to loose this patch, which is an improvement
anyway, I've committed it.

Abdel.


Reply via email to