[EMAIL PROTECTED], [EMAIL PROTECTED] wrote:

>It triggers this when you select it :
>        if (the_locking_inset != tabular->GetCellInset(cell)) {
>            lyxerr[Debug::INSETS] << "ERROR this shouldn't happenn";
>            return;
>        }
>Commenting out the return gives a segfault. I hope that gives a clue, I
>don't understand this code myself.

Well you didn't tell me where in the code :), but I'm pretty sure this is
in the part where the width of the columns (tabular) is calculated is it?

This should be only a visual feedback problem (this means that the tabular is
not redrawn. Please try to select more tabular columns without being inside
the text inset (the textinst should not be locked).

Probably we can fix the problem by unlocking the textinset in the part
of the switch in TabularFeatures where the Multicolumn-Set is handled.

Wait IMO we could handle this better let's for now just unlock the inset
in UpdateLocal if the what == INIT something like:

void InsetTabular::UpdateLocal(BufferView * bv, UpdateCodes what,
                               bool mark_dirty) const
{
if ((what == INIT) && the_locking_inset) {
    the_locking_inset->InsetUnlock(bv);
    the_locking_inset = 0;
}
....
}

This should help IMO, but please test!

      Jürgen

Reply via email to