On 11/16/06, Abdelrazak Younes <[EMAIL PROTECTED]> wrote:
Ozgur Ugras BARAN wrote:
> Following patch corrects some misbehavior in TOC dialog:
>
> - When clicking on Toc insets, dialog switches to correct list.
> - cursor goes to correct entry when clicked..
> - some other fixes..

I have tested and committed the patch. Thanks Ugras.

>
> There is one strange problem, though. After clicking table toc
> entries, cursor goes to correct table, but the last table inset is
> selected in tableview. This only happens in the table insets.

Confirmed. But no idea :-(

Abdel.



Well, I found why, but I have no solution, yet. the problem is the
line (in ControlToc)
ParConstIterator it(kernel().bufferview()->cursor());

returns wrong cursor pos. for tables. You can see a similar problem
while goto function is called. The cursor does not go to first line of
the float, but some arbitrary position in table.

In short, there is something weird in cursor control for table floats.
(other floats does not have the same problem).

As a solution, we can comment the line

select(form_->getCurrentIndex());

for the moment, or find a workaround for the problem. My opinion is
that, this is not a TOC dialog bug, but a cursor bug deeply related
with tables.


Ugras

Reply via email to