On 31-Mar-2000 Juergen Vigna wrote:
>
> Did you try to insert a math-inset and then do Undo you get:
>
> ERROR (LyXParagraph::GetInset): position does not exist: 8 (or wherever)
>
> This is obvious as the_locking_inset is set to the math-inset (or text-inset)
> which after the Undo does not exist anymore! I'll have a look at this ;)
>
Wrong! Obviouly the_locking_inset is NOT set, only after the undo if
there was an inset we try to find it again and it is GetInset which gives
that warning ;), but now we come to the real BUG
line 662 in paragraph.C says:
text[pos] = ' '; // WHY!!! does this set the pos to ' '????
and we really do this!!! So try removing a inserted math-inset with Undo
and you'll loose a character (which you only see after the next full
repaint or after you saved your document and reload it!!!).
I'll comment this row out as Lars did with the const-function and when
reading the comment after this row he should have commented out this
also!!!
J�rgen
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. J�rgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel: +39-0471-450260
I-39100 Bozen Fax: +39-0471-450296
ITALY Web: http://www.sad.it/~jug
Well, I'm disenchanted too. We're all disenchanted.
-- James Thurber
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._