On Mon, Aug 14, 2006 at 05:21:49PM +0200, Jean-Marc Lasgouttes wrote: > The following patch fixes this bug for me.
Indeed, the crash is gone. However, after applying this patch I still observe a weird behavior which may be reproduced by the following steps: 1) Ctrl-N (new document) 2) Shift-Ctrl-M (math display) 3) x^2 4) Backspace (delete the "2") 5) Cursor down (cursor is to the left of x but outside the scriptinset) 6) Cursor right (cursor is to the left of x but inside the scriptinset) 7) Undo 8) Redo Now LyX spits out a long series of: I don't have a cell 1 followed by an unterminated series of InsetBase::cursorPos called directly which only stops when clicking somewhere with the mouse. In the meantime the cursor is blinking in the grey area below the document area. Omitting step 6 above, everything is ok. So, maybe I am only being picky. -- Enrico