[EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
>
>On Mon, 27 Nov 2000, Jürgen Vigna wrote:

>Sorry, I didn't realise you didn't have easy access to the source as
>well. This is InsetTabular::draw(), inside the need_update == CELL
>case. It comes *after* the code that does the

Hmmmm I thought about the problem and probably it should be solved in the
Selection area (InsetButtonMotionNotify) and there if the selection goes
over one cell the inset should be unlocked so this type of stuff cannot happen!

>GetWidthOfColumn() GetAscentOfRow() stuff - is that where you mean ?
>

No I thought it was in update() which calls the function to recalculate the
width of the columns (cells) CalculateWidthOfTabular (or something like that ;)

>I'm not sure what you mean here, I can't select stuff without the text
>cursor following. And shouldn't I be able to get it to redraw properly
>later ?

Do you select with mouse or with cusor keys? Please try to do the same
(selecting more cells) but using Shift-CursorRight AND also enter the
tabular with the cursor (so you'll see the cursor inside the cell blinking
but no border around the cells text is written.

>> 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;
>> }
>> ....
>> }
>I had to make the_locking_inset member mutable as well. Unfortunately this
>didn't help. I still get the ERROR every time I select "multicolumn". I
>wish I could help further but I've never seen this code before ;)

You didn't look good IMO, you shouldn't put the above code in the draw() function
(which is const) but at the top of UpdateLocal! Please retry (althougth the above
mentioned solution would be the best one!)

Could you please try again?

Greets Jürgen

Reply via email to